mirror of https://github.com/mirror/busybox.git
add if guards around include <malloc.h>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_19_stable
parent
5dcc6606cb
commit
8da415ef25
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue