From: Ulf Hermann Date: Thu, 20 Apr 2017 14:45:51 +0000 (+0200) Subject: Include sys/types.h before fts.h X-Git-Tag: elfutils-0.169~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dd27ffbb374b90741fb854de3e02708ffda643f;p=thirdparty%2Felfutils.git Include sys/types.h before fts.h The bad fts not only needs to be included before config.h, but also requires various special types without including sys/types.h. Signed-off-by: Ulf Hermann --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index ede6d4710..cc95e0671 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,3 +1,7 @@ +2017-04-20 Ulf Hermann + + * linux-kernel-modules.c: Include sys/types.h before fts.h + 2017-03-24 Mark Wielaard * linux-core-attach.c (core_next_thread): If n_namesz == 0 then diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c index 7345e760f..893110ae8 100644 --- a/libdwfl/linux-kernel-modules.c +++ b/libdwfl/linux-kernel-modules.c @@ -28,8 +28,11 @@ /* In case we have a bad fts we include this before config.h because it can't handle _FILE_OFFSET_BITS. - Everything we need here is fine if its declarations just come first. */ + Everything we need here is fine if its declarations just come first. + Also, include sys/types.h before fts. On some systems fts.h is not self + contained. */ #ifdef BAD_FTS + #include #include #endif @@ -55,6 +58,7 @@ #define fopen fopen64 #endif #else + #include #include #endif