martin          Thu Nov 28 04:19:16 2002 EDT

  Modified files:              
    /php4/ext/gd        gdcache.h 
  Log:
  Portability: avoid <malloc.h> warnings on FreeBSD
  
  
Index: php4/ext/gd/gdcache.h
diff -u php4/ext/gd/gdcache.h:1.2 php4/ext/gd/gdcache.h:1.3
--- php4/ext/gd/gdcache.h:1.2   Sun Jan  7 04:22:53 2001
+++ php4/ext/gd/gdcache.h       Thu Nov 28 04:19:16 2002
@@ -1,5 +1,5 @@
 /* 
- * $Id: gdcache.h,v 1.2 2001/01/07 09:22:53 sniper Exp $ 
+ * $Id: gdcache.h,v 1.3 2002/11/28 09:19:16 martin Exp $ 
  *
  * Caches of pointers to user structs in which the least-recently-used 
  * element is replaced in the event of a cache miss after the cache has 
@@ -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 */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to