diff options
-rw-r--r-- | libbb/makedev.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libbb/makedev.c b/libbb/makedev.c index cf59e616b..1809fda4e 100644 --- a/libbb/makedev.c +++ b/libbb/makedev.c | |||
@@ -8,8 +8,14 @@ | |||
8 | 8 | ||
9 | /* We do not include libbb.h - #define makedev() is there! */ | 9 | /* We do not include libbb.h - #define makedev() is there! */ |
10 | #include "platform.h" | 10 | #include "platform.h" |
11 | #include <features.h> | 11 | #if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ |
12 | #include <sys/sysmacros.h> | 12 | || defined(__APPLE__) \ |
13 | ) | ||
14 | # include <features.h> | ||
15 | # include <sys/sysmacros.h> | ||
16 | #else | ||
17 | # include <sys/types.h> | ||
18 | #endif | ||
13 | 19 | ||
14 | #ifdef __GLIBC__ | 20 | #ifdef __GLIBC__ |
15 | /* At least glibc has horrendously large inline for this, so wrap it */ | 21 | /* At least glibc has horrendously large inline for this, so wrap it */ |