23#ifndef USE_DYNAMIC_OAUTH
24#error oauth-utils.c is not supported in static builds
28#error do not rely on libpq-int.h in dynamic builds of libpq-oauth
94#define SOCK_ERRNO (WSAGetLastError())
95#define SOCK_ERRNO_SET(e) WSASetLastError(e)
97#define SOCK_ERRNO errno
98#define SOCK_ERRNO_SET(e) (errno = (e))
126 *sigpipe_pending =
true;
128 *sigpipe_pending =
false;
131 *sigpipe_pending =
false;
148 if (got_epipe && !sigpipe_pending)
#define unconstify(underlying_type, expr)
pgthreadlock_t PQgetThreadLock(void)
void(* pgthreadlock_t)(int acquire)
void pq_reset_sigpipe(sigset_t *osigset, bool sigpipe_pending, bool got_epipe)
void libpq_oauth_init(libpq_gettext_func gettext_impl)
int pq_block_sigpipe(sigset_t *osigset, bool *sigpipe_pending)
static libpq_gettext_func libpq_gettext_impl
pgthreadlock_t pg_g_threadlock
#define SOCK_ERRNO_SET(e)
bool oauth_unsafe_debugging_enabled(void)
char *(* libpq_gettext_func)(const char *msgid)