diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-09-08 15:40:48 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-09-08 15:40:48 +0200 |
commit | 7b4262e1f98737af802d23046c97c0418a349e91 (patch) | |
tree | c307156b5b22e41ee67c729f355009621290ff10 | |
parent | 77d7f8c7f6254dd35cdb532196dc69e33e08cea7 (diff) | |
download | mblaze-7b4262e1f98737af802d23046c97c0418a349e91.tar.gz mblaze-7b4262e1f98737af802d23046c97c0418a349e91.tar.xz mblaze-7b4262e1f98737af802d23046c97c0418a349e91.zip |
mlist: include <sys/syscall.h> only when required
Fixes build on cygwin.
-rw-r--r-- | mlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mlist.c b/mlist.c index 5aaf380..0fade35 100644 --- a/mlist.c +++ b/mlist.c @@ -1,7 +1,6 @@ #define _GNU_SOURCE #include <sys/stat.h> -#include <sys/syscall.h> #include <dirent.h> #include <fcntl.h> @@ -89,6 +88,8 @@ list(char *prefix, char *file) #ifdef __linux__ // faster implementation of readdir using a bigger getdents buffer +#include <sys/syscall.h> + struct linux_dirent64 { ino64_t d_ino; /* 64-bit inode number */ off64_t d_off; /* 64-bit offset to next structure */ |