cvs: ZendEngine2 / zend_alloc.c
| From: | Antony Dovgal | Date: | Tue, 18 Jul 2006 15:41:47 +0000 |
| Subject: | cvs: ZendEngine2 / zend_alloc.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-5080@lists.php.net to get a copy of this message | ||
tony2001 Tue Jul 18 15:41:47 2006 UTC
Modified files:
/ZendEngine2 zend_alloc.c
Log:
fix build on platforms without mremap()
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.152&r2=1.153&diff_format=u
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.152 ZendEngine2/zend_alloc.c:1.153
--- ZendEngine2/zend_alloc.c:1.152 Tue Jul 18 09:08:05 2006
+++ ZendEngine2/zend_alloc.c Tue Jul 18 15:41:47 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_alloc.c,v 1.152 2006/07/18 09:08:05 dmitry Exp $ */
+/* $Id: zend_alloc.c,v 1.153 2006/07/18 15:41:47 tony2001 Exp $ */
#include "zend.h"
#include "zend_alloc.h"
@@ -110,8 +110,9 @@
static zend_mm_segment* zend_mm_mem_mmap_realloc(zend_mm_storage *storage, zend_mm_segment*
segment, size_t size)
{
+ zend_mm_segment *ret;
#ifdef HAVE_MREMAP
- zend_mm_segment *ret = (zend_mm_segment*)mremap(segment, segment->size, size, MREMAP_MAYMOVE);
+ ret = (zend_mm_segment*)mremap(segment, segment->size, size, MREMAP_MAYMOVE);
if (ret == MAP_FAILED) {
#endif
ret = storage->handlers->_alloc(storage, size);