diff options
author | Bruce Momjian | 2004-02-11 17:32:09 +0000 |
---|---|---|
committer | Bruce Momjian | 2004-02-11 17:32:09 +0000 |
commit | 29760bbdaf8fee6539ce9d986db9dc7d29bbc080 (patch) | |
tree | 0a8770dee0af0e6f0b840d39669fc59e3e1d736d /configure.in | |
parent | 18b8cb5a9e870488512b6075ce1beb8dedeacc8b (diff) |
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.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 8c58f628bb9..b26c5fe1084 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ 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 Developers, please strive to achieve this order: dnl @@ -1053,6 +1053,7 @@ AC_SUBST(THREAD_LIBS) # functions are marked "not found", which is perfect. # 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" _LIBS="$LIBS" CFLAGS="$CFLAGS $THREAD_CPPFLAGS" |