compat: MSVC: strtok_r is known as strtok_s
diff --git a/compat/compat.h.in b/compat/compat.h.in
index 6bc45fd..bb7cdb0 100644
--- a/compat/compat.h.in
+++ b/compat/compat.h.in
@@ -173,4 +173,8 @@
 char *strptime(const char *s, const char *format, struct tm *tm);
 #endif
 
+#if defined (_WIN32)
+# define strtok_r strtok_s
+#endif
+
 #endif /* _COMPAT_H_ */