summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/gdcache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gd/gdcache.h b/ext/gd/gdcache.h
index 06bf0ee6ce..87ab305aba 100644
--- a/ext/gd/gdcache.h
+++ b/ext/gd/gdcache.h
@@ -40,7 +40,7 @@
/* header */
/*********************************************************/
-#if (!defined _OSD_POSIX) && HAVE_MALLOC_H
+#if (!defined(_OSD_POSIX) && !defined(__FreeBSD__)) && HAVE_MALLOC_H
#include <malloc.h>
#else
#include <stdlib.h> /* BS2000/OSD defines malloc() & friends in stdlib.h */