Fix linking problem when enabling thread safety on Darwin: uninitialized
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-connect.c | modified | +2 −2 |
| src/interfaces/libpq/fe-print.c | modified | +3 −3 |
| src/interfaces/libpq/fe-secure.c | modified | +8 −8 |
| src/interfaces/libpq/libpq-int.h | modified | +3 −3 |