]> granicus.if.org Git - php/commitdiff
Portability: avoid <malloc.h> warnings on FreeBSD
authorMartin Kraemer <martin@php.net>
Thu, 28 Nov 2002 09:19:16 +0000 (09:19 +0000)
committerMartin Kraemer <martin@php.net>
Thu, 28 Nov 2002 09:19:16 +0000 (09:19 +0000)
ext/gd/gdcache.h

index 06bf0ee6ce1f76d654ef68859c2ca5bdf50e51e9..87ab305aba7511fe13bd388fde3a250380a3b73b 100644 (file)
@@ -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 */