diff options
Diffstat (limited to 'libbb/appletlib.c')
-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 efd7a5a..3e32fa1 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> |