1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 02:27:41 +00:00
transmission/third-party/event2-01-win32.patch

14 lines
489 B
Diff

diff --git a/WIN32-Code/event2/event-config.h b/WIN32-Code/event2/event-config.h
--- a/WIN32-Code/event2/event-config.h
+++ b/WIN32-Code/event2/event-config.h
@@ -167,7 +167,9 @@
/* #undef _EVENT_HAVE_STRSEP */
/* Define to 1 if you have the `strtok_r' function. */
-/* #undef _EVENT_HAVE_STRTOK_R */
+#if defined(__MINGW32__) || defined(__MINGW64__)
+#define _EVENT_HAVE_STRTOK_R 1
+#endif
/* Define to 1 if you have the `strtoll' function. */
/* #define _EVENT_HAVE_STRTOLL 1 */