summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-02-11 17:29:01 +0000
committerBruce Momjian <bruce@momjian.us>2004-02-11 17:29:01 +0000
commit15b330b648553627230a11adce304103a55e0b62 (patch)
treeffe1e76023e3a95bbe266c1a0ddf1e8d4540ad35 /configure
parentac4ad7bf2cba435cf6301d3f6317d604dad920a0 (diff)
downloadpostgresql-15b330b648553627230a11adce304103a55e0b62.tar.gz
Properly set NEED_REENTRANT_FUNCS for threaded libpq/ecpg.
Without this patch, no thread locking or *_r functions were being used.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 88f763e831..ba5e68a140 100755
--- a/configure
+++ b/configure
@@ -13243,6 +13243,11 @@ fi
# functions are marked "not found", which is perfect.
#
if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NEED_REENTRANT_FUNCS 1
+_ACEOF
+
_CFLAGS="$CFLAGS"
_LIBS="$LIBS"
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"