commit: 525da8b994240b63353dfc1e7fe63d67b259ef5a Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> AuthorDate: Thu Oct 8 20:37:06 2015 +0000 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> CommitDate: Thu Oct 8 20:37:06 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=525da8b9
compat: do not include sys/dir.h on linux systems This is an old compat header that might not exist on POSIX systems. Since Linux C libs don't generally need it, avoid it there. libq/compat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libq/compat.c b/libq/compat.c index 8def2e9..d5f3278 100644 --- a/libq/compat.c +++ b/libq/compat.c @@ -32,6 +32,8 @@ char* strcasestr(const char *big, const char *little) { #elif defined(__hpux__) || defined(__MINT__) /* must not include both dir.h and dirent.h on hpux11..11 & FreeMiNT */ +#elif defined(__linux__) + /* Linux systems do not need sys/dir.h as they are generally POSIX sane */ #else /* __sun__ */ # include <sys/dir.h> #endif