[Spice-devel] [PATCH usbredir 3/8] Use strtok_r with the kernel as well as Windows.

Jeremy White jwhite at codeweavers.com
Wed Dec 9 14:15:01 PST 2015


Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
 usbredirparser/usbredirfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usbredirparser/usbredirfilter.c b/usbredirparser/usbredirfilter.c
index 65d65e4..dfabacb 100644
--- a/usbredirparser/usbredirfilter.c
+++ b/usbredirparser/usbredirfilter.c
@@ -28,7 +28,7 @@
 #include <errno.h>
 #endif
 
-#ifdef WIN32
+#if defined(WIN32) || defined(__KERNEL__)
 #include "strtok_r.h"
 #define strtok_r  glibc_strtok_r
 #endif
-- 
2.1.4



More information about the Spice-devel mailing list