Only #include <malloc.h> if it is available.

e.g., OpenBSD does not provide this header.
This commit is contained in:
Robert Crowston
2021-08-20 16:02:38 +01:00
committed by Luke Howard
parent c3a5f20041
commit 9b46d6436f

View File

@@ -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>