1 |
slords |
1.1 |
--- php-5.2.4/Zend/zend_language_parser.c.gnusrc |
2 |
|
|
+++ php-5.2.4/Zend/zend_language_parser.c |
3 |
|
|
@@ -356,6 +356,8 @@ |
4 |
|
|
#include "zend_API.h" |
5 |
|
|
#include "zend_constants.h" |
6 |
|
|
|
7 |
|
|
+#include <string.h> |
8 |
|
|
+ |
9 |
|
|
|
10 |
|
|
#define YYERROR_VERBOSE |
11 |
|
|
#define YYSTYPE znode |
12 |
|
|
--- php-5.2.4/main/streams/streams.c.gnusrc |
13 |
|
|
+++ php-5.2.4/main/streams/streams.c |
14 |
|
|
@@ -21,7 +21,6 @@ |
15 |
|
|
|
16 |
|
|
/* $Id: streams.c,v 1.82.2.6.2.18 2007/08/08 07:01:49 jani Exp $ */ |
17 |
|
|
|
18 |
|
|
-#define _GNU_SOURCE |
19 |
|
|
#include "php.h" |
20 |
|
|
#include "php_globals.h" |
21 |
|
|
#include "php_network.h" |
22 |
|
|
--- php-5.2.4/main/streams/cast.c.gnusrc |
23 |
|
|
+++ php-5.2.4/main/streams/cast.c |
24 |
|
|
@@ -18,7 +18,6 @@ |
25 |
|
|
|
26 |
|
|
/* $Id: cast.c,v 1.12.2.1.2.1 2007/01/01 09:36:11 sebastian Exp $ */ |
27 |
|
|
|
28 |
|
|
-#define _GNU_SOURCE |
29 |
|
|
#include "php.h" |
30 |
|
|
#include "php_globals.h" |
31 |
|
|
#include "php_network.h" |
32 |
|
|
--- php-5.2.4/main/streams/memory.c.gnusrc |
33 |
|
|
+++ php-5.2.4/main/streams/memory.c |
34 |
|
|
@@ -18,7 +18,6 @@ |
35 |
|
|
|
36 |
|
|
/* $Id: memory.c,v 1.8.2.6.2.17 2007/02/22 23:26:03 helly Exp $ */ |
37 |
|
|
|
38 |
|
|
-#define _GNU_SOURCE |
39 |
|
|
#include "php.h" |
40 |
|
|
|
41 |
|
|
PHPAPI int php_url_decode(char *str, int len); |
42 |
|
|
--- php-5.2.4/main/php.h.gnusrc |
43 |
|
|
+++ php-5.2.4/main/php.h |
44 |
|
|
@@ -30,6 +30,7 @@ |
45 |
|
|
#define PHP_HAVE_STREAMS |
46 |
|
|
#define YYDEBUG 0 |
47 |
|
|
|
48 |
|
|
+#include "php_config.h" |
49 |
|
|
#include "php_version.h" |
50 |
|
|
#include "zend.h" |
51 |
|
|
#include "zend_qsort.h" |
52 |
|
|
--- php-5.2.4/ext/standard/file.c.gnusrc |
53 |
|
|
+++ php-5.2.4/ext/standard/file.c |
54 |
|
|
@@ -118,7 +118,6 @@ php_file_globals file_globals; |
55 |
|
|
|
56 |
|
|
#ifdef HAVE_FNMATCH |
57 |
|
|
#ifndef _GNU_SOURCE |
58 |
|
|
-#define _GNU_SOURCE |
59 |
|
|
#endif |
60 |
|
|
#include <fnmatch.h> |
61 |
|
|
#endif |
62 |
|
|
--- php-5.2.4/ext/pdo_firebird/firebird_driver.c.gnusrc |
63 |
|
|
+++ php-5.2.4/ext/pdo_firebird/firebird_driver.c |
64 |
|
|
@@ -22,7 +22,6 @@ |
65 |
|
|
#include "config.h" |
66 |
|
|
#endif |
67 |
|
|
|
68 |
|
|
-#define _GNU_SOURCE |
69 |
|
|
|
70 |
|
|
#include "php.h" |
71 |
|
|
#include "php_ini.h" |
72 |
|
|
--- php-5.2.4/ext/zlib/zlib_fopen_wrapper.c.gnusrc |
73 |
|
|
+++ php-5.2.4/ext/zlib/zlib_fopen_wrapper.c |
74 |
|
|
@@ -19,7 +19,6 @@ |
75 |
|
|
|
76 |
|
|
/* $Id: zlib_fopen_wrapper.c,v 1.46.2.1.2.4 2007/05/08 12:08:17 dmitry Exp $ */ |
77 |
|
|
|
78 |
|
|
-#define _GNU_SOURCE |
79 |
|
|
|
80 |
|
|
#include "php.h" |
81 |
|
|
#include "php_zlib.h" |
82 |
|
|
--- php-5.2.4/ext/interbase/interbase.c.gnusrc |
83 |
|
|
+++ php-5.2.4/ext/interbase/interbase.c |
84 |
|
|
@@ -24,7 +24,6 @@ |
85 |
|
|
#include "config.h" |
86 |
|
|
#endif |
87 |
|
|
|
88 |
|
|
-#define _GNU_SOURCE |
89 |
|
|
|
90 |
|
|
#include "php.h" |
91 |
|
|
|
92 |
|
|
--- php-5.2.4/configure.in.gnusrc |
93 |
|
|
+++ php-5.2.4/configure.in |
94 |
|
|
@@ -58,6 +58,8 @@ AC_DEFUN([PHP_EXT_DIR],[ext/$1])dnl |
95 |
|
|
AC_DEFUN([PHP_EXT_SRCDIR],[$abs_srcdir/ext/$1])dnl |
96 |
|
|
AC_DEFUN([PHP_ALWAYS_SHARED],[])dnl |
97 |
|
|
|
98 |
|
|
+AC_DEFINE([_GNU_SOURCE], 1, [Define to enable GNU C Library extensions]) |
99 |
|
|
+ |
100 |
|
|
dnl Setting up the PHP version based on the information above. |
101 |
|
|
dnl ------------------------------------------------------------------------- |
102 |
|
|
|