projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e7710e
)
Windows doesn't have strtok_r, so let's use strtok_s instead.
author
Michael Meskes
Sat, 18 Feb 2012 14:56:39 +0000
(15:56 +0100)
committer
Michael Meskes
Sat, 18 Feb 2012 14:56:39 +0000
(15:56 +0100)
src/interfaces/ecpg/ecpglib/connect.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/connect.c
b/src/interfaces/ecpg/ecpglib/connect.c
index b874d860e2191acf59b5361edd70438d3522905a..ce6bbce15670bef56d7c78ed16dbf80ea68a00c4 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/connect.c
+++ b/
src/interfaces/ecpg/ecpglib/connect.c
@@
-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;