From e22af94afb904b8f727b4eaff329e15783ec1cc7 Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Mon, 24 Jan 2011 17:07:40 +0100 Subject: FreeBSD compat for makedev Signed-off-by: Chris Rees Signed-off-by: Denys Vlasenko --- libbb/makedev.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'libbb/makedev.c') 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 -#include +#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__APPLE__) \ + ) +# include +# include +#else +# include +#endif #ifdef __GLIBC__ /* At least glibc has horrendously large inline for this, so wrap it */ -- cgit v1.1