Fix linking problem when enabling thread safety on Darwin: uninitialized
authorTom Lane <[email protected]>
Tue, 17 Aug 2004 04:24:23 +0000 (04:24 +0000)
committerTom Lane <[email protected]>
Tue, 17 Aug 2004 04:24:23 +0000 (04:24 +0000)
commit109d7aff73bb94570b36e6d4d9e4e3119b92d970
tree37464a7d1dcc7fbca9eb09526d70573eaea7a700
parent8b82a705c80f1027595170c15ec50fbcdb7f3539
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.
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-secure.c
src/interfaces/libpq/libpq-int.h