summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorBruce Momjian2004-04-26 04:04:42 +0000
committerBruce Momjian2004-04-26 04:04:42 +0000
commit30a06fe2c4ef63a6b705203b0490486b8f254e6d (patch)
tree989da42e82e085594496d9bc54bdc6b86e889e7e /configure.in
parentf5b6ce7cb9f775230a5d02a99e6a181a2d5a5999 (diff)
Unconditionally define:
-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS for all ports. It can't hurt if they are not supported, but it makes our job easier for porting. Should fix Darwin compile and other platforms without mucking with the thread detection code.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index dd4e4106625..fd7fc371a52 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.333 2004/04/26 00:44:39 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.334 2004/04/26 04:04:42 momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -959,6 +959,11 @@ AC_FUNC_FSEEKO
if test "$enable_thread_safety" = yes; then
ACX_PTHREAD # set thread flags
+# Some platforms use these, so just defineed them. They can't hurt if they
+# are not supported.
+PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
+
+
# At this point, we don't want to muck with the compiler name for threading.
# Let's see who fails, perhaps AIX. 2004-04-23
if test "$PTHREAD_CC" != "$CC"; then