aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-09-26 17:39:13 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-09-26 17:39:13 +0000
commit026f9c05d5eb747ce3ee6b316946d4675ed80fad (patch)
treea2d651fa46f133cc729a32bfdb9a6375c2ae1108 /src
parentd84b6ef56be10d0c24859d38fcc4fa99cb1f43e2 (diff)
downloadpostgresql-026f9c05d5eb747ce3ee6b316946d4675ed80fad.tar.gz
postgresql-026f9c05d5eb747ce3ee6b316946d4675ed80fad.zip
Move -D_GNU_SOURCE hack from port header to template, so that
configure's tests see the same compilation environment as the code. Per discussion with Stephan Szabo.
Diffstat (limited to 'src')
-rw-r--r--src/include/port/linux.h6
-rw-r--r--src/template/linux2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index f6aacc67ff2..c7d88e396cd 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -1,9 +1,3 @@
-/* Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise */
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 1
-#endif
-
-
#if defined(__i386__) || defined(__x86_64__)
typedef unsigned char slock_t;
diff --git a/src/template/linux b/src/template/linux
index 0aab11631f5..2c4f393e75a 100644
--- a/src/template/linux
+++ b/src/template/linux
@@ -1,4 +1,6 @@
CFLAGS=-O2
+# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
+CPPFLAGS="-D_GNU_SOURCE"
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNCS=yes # verified glibc 2.1 2003-09-03