summaryrefslogtreecommitdiff
path: root/openwrt/package/postgresql/patches/750-configure-honor-cppflags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/package/postgresql/patches/750-configure-honor-cppflags.patch')
-rw-r--r--openwrt/package/postgresql/patches/750-configure-honor-cppflags.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/openwrt/package/postgresql/patches/750-configure-honor-cppflags.patch b/openwrt/package/postgresql/patches/750-configure-honor-cppflags.patch
new file mode 100644
index 0000000..897c6c0
--- /dev/null
+++ b/openwrt/package/postgresql/patches/750-configure-honor-cppflags.patch
@@ -0,0 +1,10 @@
+diff -ruN postgresql-7.4.6-old/src/template/linux postgresql-7.4.6-new/src/template/linux
+--- postgresql-7.4.6-old/src/template/linux 2003-10-09 18:52:45.000000000 +0200
++++ postgresql-7.4.6-new/src/template/linux 2005-04-13 03:12:49.000000000 +0200
+@@ -1,5 +1,5 @@
+ # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
+-CPPFLAGS="-D_GNU_SOURCE"
++CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+
+ THREAD_SUPPORT=yes
+ NEED_REENTRANT_FUNCS=yes # Debian kernel 2.2 2003-09-27