summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian2004-04-26 04:04:42 +0000
committerBruce Momjian2004-04-26 04:04:42 +0000
commit30a06fe2c4ef63a6b705203b0490486b8f254e6d (patch)
tree989da42e82e085594496d9bc54bdc6b86e889e7e /src
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 'src')
-rw-r--r--src/template/darwin3
-rw-r--r--src/template/freebsd5
-rw-r--r--src/template/linux3
-rw-r--r--src/template/solaris1
-rw-r--r--src/template/unixware3
5 files changed, 0 insertions, 15 deletions
diff --git a/src/template/darwin b/src/template/darwin
index bffb0d4ea03..baf462baf62 100644
--- a/src/template/darwin
+++ b/src/template/darwin
@@ -4,6 +4,3 @@ CC="$CC -no-cpp-precomp"
# Select appropriate semaphore support
USE_NAMED_POSIX_SEMAPHORES=1
-
-# verified Mac OS X 10.3.3, Darwin Kernel Version 7.3.0, 2004-04-07
-PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
diff --git a/src/template/freebsd b/src/template/freebsd
index f4a16103189..718359e07c6 100644
--- a/src/template/freebsd
+++ b/src/template/freebsd
@@ -1,8 +1,3 @@
case $host_cpu in
alpha*) CFLAGS="-O";; # alpha has problems with -O2
esac
-
-case $host_os in
- freebsd2*|freebsd3*|freebsd4*) ;;
- *) PTHREAD_LIBS="c_r";; # do we need this? 2004-04-23
-esac
diff --git a/src/template/linux b/src/template/linux
index 95c1b182fe5..dfb391ea542 100644
--- a/src/template/linux
+++ b/src/template/linux
@@ -1,5 +1,2 @@
# Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise
CPPFLAGS="-D_GNU_SOURCE"
-
-# tools/thread/thread_test must be run
-PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
diff --git a/src/template/solaris b/src/template/solaris
index d6d9fbc794a..f2e7aaa0470 100644
--- a/src/template/solaris
+++ b/src/template/solaris
@@ -10,4 +10,3 @@ case $host in
esac
# -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things
-PTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
diff --git a/src/template/unixware b/src/template/unixware
index e7e63f65daa..9dd9d88a6ed 100644
--- a/src/template/unixware
+++ b/src/template/unixware
@@ -24,8 +24,5 @@ __EOF__
PTHREAD_CFLAGS="-Kpthread"
fi
-# tools/thread/thread_test must be run
-PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT"
-
# Disabled because flags are required for all apps using libpq.
# Waiting to see if other platforms need this too. 2004-03-22