aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-11-07 22:09:51 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-11-07 22:09:51 +0000
commit9a1ced27326e86b47306859bf85bd1e8b79090ff (patch)
treeeef78119f54194d71c834a4c51cc4d74c776baa8
parentb02d3aaed7b0078f5d29c37217fc347412b076f3 (diff)
downloadpostgresql-9a1ced27326e86b47306859bf85bd1e8b79090ff.tar.gz
postgresql-9a1ced27326e86b47306859bf85bd1e8b79090ff.zip
Add #define _GNU_SOURCE to work around what seems to be Perl 5.8.0's
problem. Per recent discussions about plperl failing to build on Linux.
-rw-r--r--src/include/port/linux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index c5d58489ba1..d4da17da45c 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -1,3 +1,9 @@
+/* Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise */
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
+
#if defined(__i386__)
typedef unsigned char slock_t;