summaryrefslogtreecommitdiff
path: root/ext/gd/gdcache.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gd/gdcache.h')
-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 cdfbf71f95..06bf0ee6ce 100644
--- a/ext/gd/gdcache.h
+++ b/ext/gd/gdcache.h
@@ -40,7 +40,7 @@
/* header */
/*********************************************************/
-#ifndef _OSD_POSIX
+#if (!defined _OSD_POSIX) && HAVE_MALLOC_H
#include <malloc.h>
#else
#include <stdlib.h> /* BS2000/OSD defines malloc() & friends in stdlib.h */