From 7b4262e1f98737af802d23046c97c0418a349e91 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Thu, 8 Sep 2016 15:40:48 +0200 Subject: mlist: include only when required Fixes build on cygwin. --- mlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mlist.c') 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 -#include #include #include @@ -89,6 +88,8 @@ list(char *prefix, char *file) #ifdef __linux__ // faster implementation of readdir using a bigger getdents buffer +#include + struct linux_dirent64 { ino64_t d_ino; /* 64-bit inode number */ off64_t d_off; /* 64-bit offset to next structure */ -- cgit 1.4.1