mlist: include <sys/syscall.h> only when required

Fixes build on cygwin.
pull/10/head
Christian Neukirchen 8 years ago
parent 77d7f8c7f6
commit 7b4262e1f9

@ -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 */

Loading…
Cancel
Save