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>
|
||||
#ifdef __APPLE__
|
||||
#include <malloc/malloc.h>
|
||||
#else
|
||||
#elif HAVE_MALLOC_H
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
|
Reference in New Issue
Block a user