diff options
Diffstat (limited to 'src/os_unix.h')
-rw-r--r-- | src/os_unix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index d99d1c8d3..be6048fa5 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -508,6 +508,9 @@ int mch_rename __ARGS((const char *src, const char *dest)); #if !defined(S_ISFIFO) && defined(S_IFIFO) # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) #endif +#if !defined(S_ISCHR) && defined(S_IFCHR) +# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) +#endif /* Note: Some systems need both string.h and strings.h (Savage). However, * some systems can't handle both, only use string.h in that case. */ |