Only #include <malloc.h> if it is available.
e.g., OpenBSD does not provide this header.
This commit is contained in:

committed by
Luke Howard

parent
c3a5f20041
commit
9b46d6436f
@@ -31,7 +31,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <malloc/malloc.h>
|
#include <malloc/malloc.h>
|
||||||
#else
|
#elif HAVE_MALLOC_H
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
Reference in New Issue
Block a user