mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Windows doesn't have strtok_r, so let's use strtok_s instead.
This commit is contained in:
@ -10,6 +10,10 @@
|
||||
#include "extern.h"
|
||||
#include "sqlca.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#define strtok_r(s,d,p) strtok_s(s,d,p)
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_THREAD_SAFETY
|
||||
static pthread_mutex_t connections_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
static pthread_key_t actual_connection_key;
|
||||
|
Reference in New Issue
Block a user