From: Denys Vlasenko Date: Sun, 5 Dec 2010 00:30:14 +0000 (+0100) Subject: add if guards around include X-Git-Tag: 1_19_0~474 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8da415ef2503936bc9730f78a25b00177ff2db1d;p=oweals%2Fbusybox.git add if guards around include Signed-off-by: Denys Vlasenko --- 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 -#include +#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__APPLE__) \ + ) +# include /* for mallopt */ +#endif /* Try to pull in PAGE_SIZE */ #ifdef __linux__ # include diff --git a/shell/hush.c b/shell/hush.c index 584af9e06..087636b6d 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -82,7 +82,11 @@ * aaa */ #include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */ -#include /* for malloc_trim */ +#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \ + || defined(__APPLE__) \ + ) +# include /* for malloc_trim */ +#endif #include /* #include */ #if ENABLE_HUSH_CASE