Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98bf004

Browse files
committed
Re-add USE_THREADS, used by ecpg.
1 parentc45b851 commit98bf004

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

‎configure

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2785,7 +2785,11 @@ if test "${enable_thread_safety+set}" = set; then
27852785

27862786
case $enableval in
27872787
yes)
2788-
:
2788+
2789+
cat >>confdefs.h <<\_ACEOF
2790+
#define USE_THREADS 1
2791+
_ACEOF
2792+
27892793
;;
27902794
no)
27912795
:

‎configure.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $Header: /cvsroot/pgsql/configure.in,v 1.275 2003/08/0416:48:03 momjian Exp $
2+
dnl $Header: /cvsroot/pgsql/configure.in,v 1.276 2003/08/0421:26:26 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -314,7 +314,8 @@ IFS=$ac_save_IFS
314314
# Enable libpq to be thread-safety
315315
#
316316
AC_MSG_CHECKING([allow thread-safe libpq and ecpg])
317-
PGAC_ARG_BOOL(enable, thread-safety, no, [ --enable-thread-safety allow libpq and ecpg to be thread-safe])
317+
PGAC_ARG_BOOL(enable, thread-safety, no, [ --enable-thread-safety allow libpq and ecpg to be thread-safe],
318+
[AC_DEFINE([USE_THREADS], 1, [Define to 1 to build libpq and ecpg to be thread-safe. (--enable-thread-safety)])])
318319
AC_MSG_RESULT([$enable_thread_safety])
319320
AC_SUBST(enable_thread_safety)
320321

‎src/include/pg_config.h.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,10 @@
600600
/* Define to select SysV-style shared memory. */
601601
#undef USE_SYSV_SHARED_MEMORY
602602

603+
/* Define to 1 to build libpq and ecpg to be thread-safe.
604+
(--enable-thread-safety) */
605+
#undef USE_THREADS
606+
603607
/* Define to select unnamed POSIX semaphores. */
604608
#undef USE_UNNAMED_POSIX_SEMAPHORES
605609

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp