1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Properly set NEED_REENTRANT_FUNCS for threaded libpq/ecpg.

Without this patch, no thread locking or *_r functions were being used.
This commit is contained in:
Bruce Momjian
2004-02-11 17:29:01 +00:00
parent ac4ad7bf2c
commit 15b330b648
3 changed files with 10 additions and 1 deletions

5
configure vendored
View File

@ -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"