diff options
| author | Chris Rees <utisoft@gmail.com> | 2011-01-24 17:07:40 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-01-24 17:07:40 +0100 |
| commit | e22af94afb904b8f727b4eaff329e15783ec1cc7 (patch) | |
| tree | 13623f796a6897206da6355c13a0fb41724c55e1 | |
| parent | 330718ef5574d1f830e304107d2a43038aa6ff5c (diff) | |
| download | busybox-w32-e22af94afb904b8f727b4eaff329e15783ec1cc7.tar.gz busybox-w32-e22af94afb904b8f727b4eaff329e15783ec1cc7.tar.bz2 busybox-w32-e22af94afb904b8f727b4eaff329e15783ec1cc7.zip | |
FreeBSD compat for makedev
Signed-off-by: Chris Rees <utisoft@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -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 */ |
