summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-04-26 04:04:42 +0000
committerBruce Momjian <bruce@momjian.us>2004-04-26 04:04:42 +0000
commit30a06fe2c4ef63a6b705203b0490486b8f254e6d (patch)
tree989da42e82e085594496d9bc54bdc6b86e889e7e /config
parentf5b6ce7cb9f775230a5d02a99e6a181a2d5a5999 (diff)
downloadpostgresql-30a06fe2c4ef63a6b705203b0490486b8f254e6d.tar.gz
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 'config')
-rw-r--r--config/acx_pthread.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/config/acx_pthread.m4 b/config/acx_pthread.m4
index 27079def74..11c62b3f77 100644
--- a/config/acx_pthread.m4
+++ b/config/acx_pthread.m4
@@ -1,3 +1,6 @@
+dnl PGSGL: When updating, comment out port-specific part below;
+dnl see the comment below with the word "PostgreSQL".
+dnl
dnl Available from the GNU Autoconf Macro Archive at:
dnl http://www.gnu.org/software/ac-archive/htmldoc/acx_pthread.html
dnl
@@ -165,10 +168,11 @@ if test "x$acx_pthread_ok" = xyes; then
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
- case "${host_cpu}-${host_os}" in
- *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
- esac
+# We handle this ourselves in PostgreSQL
+# case "${host_cpu}-${host_os}" in
+# *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
+# *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
+# esac
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"