summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-02-11 17:32:09 +0000
committerBruce Momjian <bruce@momjian.us>2004-02-11 17:32:09 +0000
commit29760bbdaf8fee6539ce9d986db9dc7d29bbc080 (patch)
tree0a8770dee0af0e6f0b840d39669fc59e3e1d736d /configure
parent18b8cb5a9e870488512b6075ce1beb8dedeacc8b (diff)
downloadpostgresql-29760bbdaf8fee6539ce9d986db9dc7d29bbc080.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 b7f3d2bab6..40824514fb 100755
--- a/configure
+++ b/configure
@@ -13395,6 +13395,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"