diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-17 04:24:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-17 04:24:23 +0000 |
commit | 109d7aff73bb94570b36e6d4d9e4e3119b92d970 (patch) | |
tree | 37464a7d1dcc7fbca9eb09526d70573eaea7a700 /src/interfaces/libpq/libpq-int.h | |
parent | 8b82a705c80f1027595170c15ec50fbcdb7f3539 (diff) | |
download | postgresql-109d7aff73bb94570b36e6d4d9e4e3119b92d970.tar.gz postgresql-109d7aff73bb94570b36e6d4d9e4e3119b92d970.zip |
Fix linking problem when enabling thread safety on Darwin: uninitialized
global variables are problematic on this platform. Simplest solution
seems to be to initialize pthread key variable to 0. Also, rename this
variable and check_sigpipe_handler to something involving "pq" to
avoid gratuitous pollution of application namespace.
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index e74dbe7b770..ac48a9908c1 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -12,7 +12,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.88 2004/05/31 18:42:40 tgl Exp $ + * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.89 2004/08/17 04:24:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -456,8 +456,8 @@ extern void pqsecure_close(PGconn *); extern ssize_t pqsecure_read(PGconn *, void *ptr, size_t len); extern ssize_t pqsecure_write(PGconn *, const void *ptr, size_t len); #ifdef ENABLE_THREAD_SAFETY -extern void check_sigpipe_handler(void); -extern pthread_key_t thread_in_send; +extern void pq_check_sigpipe_handler(void); +extern pthread_key_t pq_thread_in_send; #endif #ifdef USE_SSL |