cvs: ZendEngine2 / zend_alloc.c

[email protected] ("Dmitry Stogov") Fri, 20 Mar 2009 11:23:22 -0000
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1237548202@cvsserver>
dmitry		Fri Mar 20 11:23:22 2009 UTC

  Modified files:              
    /ZendEngine2	zend_alloc.c 
  Log:
  Fixed warning
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.c?r1=1.222&r2=1.223&diff_format=u
Index: ZendEngine2/zend_alloc.c
diff -u ZendEngine2/zend_alloc.c:1.222 ZendEngine2/zend_alloc.c:1.223
--- ZendEngine2/zend_alloc.c:1.222	Sun Jan 25 14:01:01 2009
+++ ZendEngine2/zend_alloc.c	Fri Mar 20 11:23:22 2009
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_alloc.c,v 1.222 2009/01/25 14:01:01 dsp Exp $ */
+/* $Id: zend_alloc.c,v 1.223 2009/03/20 11:23:22 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_alloc.h"
@@ -111,8 +111,12 @@
 
 #if defined(HAVE_MEM_MMAP_ANON) || defined(HAVE_MEM_MMAP_ZERO)
 # ifdef HAVE_MREMAP
+#  ifndef _GNU_SOURCE
 #   define _GNU_SOURCE
+#  endif
+#  ifndef __USE_GNU
 #   define __USE_GNU
+#  endif
 # endif
 # include <sys/mman.h>
 # ifndef MAP_ANON