mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +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
@ -13395,6 +13395,11 @@ fi
|
|||||||
# functions are marked "not found", which is perfect.
|
# functions are marked "not found", which is perfect.
|
||||||
#
|
#
|
||||||
if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
|
if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
|
||||||
|
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define NEED_REENTRANT_FUNCS 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
_CFLAGS="$CFLAGS"
|
_CFLAGS="$CFLAGS"
|
||||||
_LIBS="$LIBS"
|
_LIBS="$LIBS"
|
||||||
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
|
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
dnl Process this file with autoconf to produce a configure script.
|
dnl Process this file with autoconf to produce a configure script.
|
||||||
dnl $Header: /cvsroot/pgsql/configure.in,v 1.301.2.4 2003/12/13 16:57:36 momjian Exp $
|
dnl $Header: /cvsroot/pgsql/configure.in,v 1.301.2.5 2004/02/11 17:32:09 momjian Exp $
|
||||||
dnl
|
dnl
|
||||||
dnl Developers, please strive to achieve this order:
|
dnl Developers, please strive to achieve this order:
|
||||||
dnl
|
dnl
|
||||||
@ -1053,6 +1053,7 @@ AC_SUBST(THREAD_LIBS)
|
|||||||
# functions are marked "not found", which is perfect.
|
# functions are marked "not found", which is perfect.
|
||||||
#
|
#
|
||||||
if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
|
if test "$enable_thread_safety" = yes -a "$NEED_REENTRANT_FUNCS" = yes ; then
|
||||||
|
AC_DEFINE(NEED_REENTRANT_FUNCS, 1, [Define if non *_r libc functions are not thread safe])
|
||||||
_CFLAGS="$CFLAGS"
|
_CFLAGS="$CFLAGS"
|
||||||
_LIBS="$LIBS"
|
_LIBS="$LIBS"
|
||||||
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
|
CFLAGS="$CFLAGS $THREAD_CPPFLAGS"
|
||||||
|
@ -554,6 +554,9 @@
|
|||||||
/* Define as the maximum alignment requirement of any C data type. */
|
/* Define as the maximum alignment requirement of any C data type. */
|
||||||
#undef MAXIMUM_ALIGNOF
|
#undef MAXIMUM_ALIGNOF
|
||||||
|
|
||||||
|
/* Define if non *_r libc functions are not thread safe */
|
||||||
|
#undef NEED_REENTRANT_FUNCS
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
/* Define to the address where bug reports for this package should be sent. */
|
||||||
#undef PACKAGE_BUGREPORT
|
#undef PACKAGE_BUGREPORT
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user