mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Windows doesn't have strtok_r, so let's use strtok_s instead.
This commit is contained in:
parent
5e7710e725
commit
e3155c97b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user