6deb5f7
diff -up php5.3-201004081030/configure.in.gnusrc php5.3-201004081030/configure.in
6deb5f7
--- php5.3-201004081030/configure.in.gnusrc	2010-03-19 00:36:53.000000000 +0100
6deb5f7
+++ php5.3-201004081030/configure.in	2010-04-08 14:32:20.000000000 +0200
3244077
@@ -58,6 +58,8 @@ AC_DEFUN([PHP_EXT_DIR],[ext/$1])dnl
3244077
 AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir/ext/$1])dnl
3244077
 AC_DEFUN([PHP_ALWAYS_SHARED],[])dnl
cf2850d
 
3244077
+AC_DEFINE([_GNU_SOURCE], 1, [Define to enable GNU C Library extensions])
cf2850d
+
3244077
 dnl Setting up the PHP version based on the information above.
3244077
 dnl -------------------------------------------------------------------------
cf2850d
 
6deb5f7
diff -up php5.3-201004081030/ext/interbase/interbase.c.gnusrc php5.3-201004081030/ext/interbase/interbase.c
6deb5f7
--- php5.3-201004081030/ext/interbase/interbase.c.gnusrc	2010-01-03 10:36:55.000000000 +0100
6deb5f7
+++ php5.3-201004081030/ext/interbase/interbase.c	2010-04-08 14:32:20.000000000 +0200
3244077
@@ -24,7 +24,6 @@
3244077
 #include "config.h"
3244077
 #endif
cf2850d
 
975ebd9
-#define _GNU_SOURCE
3244077
 
cf2850d
 #include "php.h"
cf2850d
 
6deb5f7
diff -up php5.3-201004081030/ext/pdo_firebird/firebird_driver.c.gnusrc php5.3-201004081030/ext/pdo_firebird/firebird_driver.c
6deb5f7
--- php5.3-201004081030/ext/pdo_firebird/firebird_driver.c.gnusrc	2010-01-12 14:36:12.000000000 +0100
6deb5f7
+++ php5.3-201004081030/ext/pdo_firebird/firebird_driver.c	2010-04-08 14:32:20.000000000 +0200
3244077
@@ -22,7 +22,6 @@
3244077
 #include "config.h"
3244077
 #endif
cf2850d
 
cf2850d
-#define _GNU_SOURCE
3244077
 
cf2850d
 #include "php.h"
ca0ae5d
 #ifdef ZEND_ENGINE_2
6deb5f7
diff -up php5.3-201004081030/ext/standard/file.c.gnusrc php5.3-201004081030/ext/standard/file.c
6deb5f7
--- php5.3-201004081030/ext/standard/file.c.gnusrc	2010-03-19 00:36:53.000000000 +0100
6deb5f7
+++ php5.3-201004081030/ext/standard/file.c	2010-04-08 14:32:20.000000000 +0200
3ba1d41
@@ -113,9 +113,6 @@ php_file_globals file_globals;
3244077
 #endif
fc5ff27
 
fc5ff27
 #if defined(HAVE_FNMATCH) && !defined(PHP_WIN32)
fc5ff27
-# ifndef _GNU_SOURCE
fc5ff27
-#  define _GNU_SOURCE
fc5ff27
-# endif
fc5ff27
 # include <fnmatch.h>
3244077
 #endif
fc5ff27
 
6deb5f7
diff -up php5.3-201004081030/ext/zlib/zlib_fopen_wrapper.c.gnusrc php5.3-201004081030/ext/zlib/zlib_fopen_wrapper.c
6deb5f7
--- php5.3-201004081030/ext/zlib/zlib_fopen_wrapper.c.gnusrc	2010-03-12 12:36:27.000000000 +0100
6deb5f7
+++ php5.3-201004081030/ext/zlib/zlib_fopen_wrapper.c	2010-04-08 14:33:46.000000000 +0200
bc3d832
@@ -19,8 +19,6 @@
cf2850d
 
6deb5f7
 /* $Id: zlib_fopen_wrapper.c 296107 2010-03-12 10:28:59Z jani $ */
cf2850d
 
975ebd9
-#define _GNU_SOURCE
bc3d832
-
3244077
 #include "php.h"
3244077
 #include "php_zlib.h"
bc3d832
 #include "fopen_wrappers.h"
6deb5f7
diff -up php5.3-201004081030/main/php.h.gnusrc php5.3-201004081030/main/php.h
6deb5f7
--- php5.3-201004081030/main/php.h.gnusrc	2010-03-12 12:36:33.000000000 +0100
6deb5f7
+++ php5.3-201004081030/main/php.h	2010-04-08 14:32:20.000000000 +0200
cf2850d
@@ -30,6 +30,7 @@
cf2850d
 #define PHP_HAVE_STREAMS
cf2850d
 #define YYDEBUG 0
cf2850d
 
cf2850d
+#include "php_config.h"
cf2850d
 #include "php_version.h"
cf2850d
 #include "zend.h"
cf2850d
 #include "zend_qsort.h"
6deb5f7
diff -up php5.3-201004081030/main/streams/cast.c.gnusrc php5.3-201004081030/main/streams/cast.c
6deb5f7
--- php5.3-201004081030/main/streams/cast.c.gnusrc	2010-01-19 16:36:23.000000000 +0100
6deb5f7
+++ php5.3-201004081030/main/streams/cast.c	2010-04-08 14:33:15.000000000 +0200
3244077
@@ -18,7 +18,6 @@
cf2850d
 
6deb5f7
 /* $Id: cast.c 293732 2010-01-19 13:44:08Z jani $ */
cf2850d
 
cf2850d
-#define _GNU_SOURCE
975ebd9
 #include "php.h"
3244077
 #include "php_globals.h"
3244077
 #include "php_network.h"
6deb5f7
diff -up php5.3-201004081030/main/streams/memory.c.gnusrc php5.3-201004081030/main/streams/memory.c
6deb5f7
--- php5.3-201004081030/main/streams/memory.c.gnusrc	2010-01-03 10:36:58.000000000 +0100
6deb5f7
+++ php5.3-201004081030/main/streams/memory.c	2010-04-08 14:32:20.000000000 +0200
3ba1d41
@@ -18,7 +18,6 @@
3ba1d41
 
3ba1d41
 /* $Id: memory.c 293036 2010-01-03 09:23:27Z sebastian $ */
3ba1d41
 
3ba1d41
-#define _GNU_SOURCE
3ba1d41
 #include "php.h"
3ba1d41
 
3ba1d41
 PHPAPI int php_url_decode(char *str, int len);
6deb5f7
diff -up php5.3-201004081030/Zend/zend_language_parser.c.gnusrc php5.3-201004081030/Zend/zend_language_parser.c
6deb5f7
--- php5.3-201004081030/Zend/zend_language_parser.c.gnusrc	2010-04-08 12:41:33.000000000 +0200
6deb5f7
+++ php5.3-201004081030/Zend/zend_language_parser.c	2010-04-08 14:32:20.000000000 +0200
fc5ff27
@@ -366,6 +366,8 @@
3244077
 #include "zend_API.h"
3244077
 #include "zend_constants.h"
975ebd9
 
3244077
+#include <string.h>
975ebd9
+
975ebd9
 
3244077
 #define YYERROR_VERBOSE
3244077
 #define YYSTYPE znode
6deb5f7
--- php5.3-201005241430/main/streams/streams.c.gnusrc	2010-05-18 22:35:37.000000000 +0200
6deb5f7
+++ php5.3-201005241430/main/streams/streams.c	2010-05-24 17:02:08.900419954 +0200
6deb5f7
@@ -21,7 +21,6 @@
6deb5f7
 
6deb5f7
 /* $Id: streams.c 299466 2010-05-18 19:39:39Z pajoye $ */
6deb5f7
 
6deb5f7
-#define _GNU_SOURCE
6deb5f7
 #include "php.h"
6deb5f7
 #include "php_globals.h"
6deb5f7
 #include "php_network.h"