diff options
Diffstat (limited to 'otherlibs/unix/stat.c')
-rw-r--r-- | otherlibs/unix/stat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/otherlibs/unix/stat.c b/otherlibs/unix/stat.c index 41e0e23f6..1791e0e33 100644 --- a/otherlibs/unix/stat.c +++ b/otherlibs/unix/stat.c @@ -13,7 +13,7 @@ #include <mlvalues.h> #include <alloc.h> -#include "unix.h" +#include "unixsupport.h" #include "cst2constr.h" #include <sys/types.h> #include <sys/stat.h> @@ -27,6 +27,9 @@ #ifndef S_IFSOCK #define S_IFSOCK 0 #endif +#ifndef S_IFBLK +#define S_IFBLK 0 +#endif static int file_kind_table[] = { S_IFREG, S_IFDIR, S_IFCHR, S_IFBLK, S_IFLNK, S_IFIFO, S_IFSOCK |