diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index efd7a5a81..3e32fa1ef 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -28,7 +28,11 @@ */ #include "busybox.h" #include <assert.h> -#include <malloc.h> +#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__APPLE__) \ + ) +# include <malloc.h> /* for mallopt */ +#endif /* Try to pull in PAGE_SIZE */ #ifdef __linux__ # include <sys/user.h> |