cvs: ZendEngine2(PHP_5_3) / zend_alloc.c
"Felipe Pena" <[email protected]> Wed, 01 Apr 2009 16:55:47 -0000
| Newsgroups | gmane.comp.php.cvs.zend |
|---|---|
| Message-ID | <cvsfelipe1238604947@cvsserver> |
felipe Wed Apr 1 16:55:47 2009 UTC
Modified files: (Branch: PHP_5_3)
/ZendEngine2 zend_alloc.c
Log:
- MFH: Fixed bug #47852 (Compilation failure in zend_alloc.c) (Matteo)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.144.2.3.2.43.2.22&r2=1.144.2.3.2.43.2.23&diff_format=u
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.144.2.3.2.43.2.22 ZendEngine2/zend_alloc.c:1.144.2.3.2.43.2.23
--- ZendEngine2/zend_alloc.c:1.144.2.3.2.43.2.22 Fri Mar 20 11:23:00 2009
+++ ZendEngine2/zend_alloc.c Wed Apr 1 16:55:47 2009
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.c,v 1.144.2.3.2.43.2.22 2009/03/20 11:23:00 dmitry Exp $ */
+/* $Id: zend_alloc.c,v 1.144.2.3.2.43.2.23 2009/04/01 16:55:47 felipe Exp $ */
#include "zend.h"
#include "zend_alloc.h"
@@ -150,7 +150,12 @@
{
zend_mm_segment *ret;
#ifdef HAVE_MREMAP
+#if defined(__NetBSD__)
+ /* NetBSD 5 supports mremap but takes an extra newp argument */
+ ret = (zend_mm_segment*)mremap(segment, segment->size, segment, size, MREMAP_MAYMOVE);
+#else
ret = (zend_mm_segment*)mremap(segment, segment->size, size, MREMAP_MAYMOVE);
+#endif
if (ret == MAP_FAILED) {
#endif
ret = storage->handlers->_alloc(storage, size);
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php