summaryrefslogtreecommitdiff
path: root/shell/hush.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-12-05 01:30:14 +0100
committerDenys Vlasenko2010-12-05 01:30:14 +0100
commit8da415ef2503936bc9730f78a25b00177ff2db1d (patch)
treea58ed5ab38868fba80ccdea9fe8ee192fa5d9851 /shell/hush.c
parent5dcc6606cb6ef41e0e0b0f828f670cc61311a3f7 (diff)
downloadbusybox-8da415ef2503936bc9730f78a25b00177ff2db1d.zip
busybox-8da415ef2503936bc9730f78a25b00177ff2db1d.tar.gz
add if guards around include <malloc.h>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-rw-r--r--shell/hush.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 584af9e..087636b 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -82,7 +82,11 @@
* aaa
*/
#include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */
-#include <malloc.h> /* for malloc_trim */
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
+ || defined(__APPLE__) \
+ )
+# include <malloc.h> /* for malloc_trim */
+#endif
#include <glob.h>
/* #include <dmalloc.h> */
#if ENABLE_HUSH_CASE