[git commit master 1/1] FreeBSD compat for makedev
Denys Vlasenko
vda.linux at googlemail.com
Mon Jan 24 16:07:40 UTC 2011
commit: http://git.busybox.net/busybox/commit/?id=e22af94afb904b8f727b4eaff329e15783ec1cc7
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Chris Rees <utisoft at gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
libbb/makedev.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/libbb/makedev.c b/libbb/makedev.c
index cf59e61..1809fda 100644
--- a/libbb/makedev.c
+++ b/libbb/makedev.c
@@ -8,8 +8,14 @@
/* We do not include libbb.h - #define makedev() is there! */
#include "platform.h"
-#include <features.h>
-#include <sys/sysmacros.h>
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
+ || defined(__APPLE__) \
+ )
+# include <features.h>
+# include <sys/sysmacros.h>
+#else
+# include <sys/types.h>
+#endif
#ifdef __GLIBC__
/* At least glibc has horrendously large inline for this, so wrap it */
--
1.7.3.4
More information about the busybox-cvs
mailing list