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:
5
configure
vendored
5
configure
vendored
@ -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"
|
||||
|
Reference in New Issue
Block a user