diff options
| author | Ulf Hermann <[email protected]> | 2017-04-20 16:45:51 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-25 23:50:46 +0200 |
| commit | 5dd27ffbb374b90741fb854de3e02708ffda643f (patch) | |
| tree | fb329919c9d9156a6c2c2d3fcb476c984b7e60ea /libdwfl/linux-kernel-modules.c | |
| parent | 7114c513fbebcca8b76796b7f64b57447ba383e1 (diff) | |
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 <[email protected]>
Diffstat (limited to 'libdwfl/linux-kernel-modules.c')
| -rw-r--r-- | libdwfl/linux-kernel-modules.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c index 7345e760..893110ae 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 <sys/types.h> #include <fts.h> #endif @@ -55,6 +58,7 @@ #define fopen fopen64 #endif #else + #include <sys/types.h> #include <fts.h> #endif |
