summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kraemer <martin@php.net>2002-11-28 09:19:16 +0000
committerMartin Kraemer <martin@php.net>2002-11-28 09:19:16 +0000
commit966f75d4fbb7f395c60ffb3cd5c7948391628ade (patch)
treedd75bf7ab31faef2db903721f4cf75e21853b582
parentf3845c3ae08193629ad6e149853ae93b8e2cb02b (diff)
downloadphp-git-966f75d4fbb7f395c60ffb3cd5c7948391628ade.tar.gz
Portability: avoid <malloc.h> warnings on FreeBSD
-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 */