diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-02-11 17:29:01 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-02-11 17:29:01 +0000 |
| commit | 15b330b648553627230a11adce304103a55e0b62 (patch) | |
| tree | ffe1e76023e3a95bbe266c1a0ddf1e8d4540ad35 /configure.in | |
| parent | ac4ad7bf2cba435cf6301d3f6317d604dad920a0 (diff) | |
| download | postgresql-15b330b648553627230a11adce304103a55e0b62.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.in')
| -rw-r--r-- | configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 3f7994fbbf..141aa6360f 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.314 2004/02/10 19:55:45 tgl Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.315 2004/02/11 17:29:01 momjian Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -1003,6 +1003,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" |
