path: root/usbredirparser/
diff options
authorUri Lublin <>2012-05-14 13:05:28 +0300
committerUri Lublin <>2012-07-08 22:55:19 +0300
commit8db9136a14b78db713a564647e6e676e5fcb8a9b (patch)
tree65ecee8ff115d7d5e87dc2a190351b54dc0606e7 /usbredirparser/
parentcb74b3113076d6e18c799a0c73978e1aea32bad0 (diff)
usbredirfilter: Win32: use strtok_r implementation of glibc
I could not find an imlpementation of strtok_r in mingw. It seems strtok_s requires an additional package to be installed on the usb-host machine. This patch adds the glibc implementation of strtok_r to be used on windows.
Diffstat (limited to 'usbredirparser/')
1 files changed, 4 insertions, 0 deletions
diff --git a/usbredirparser/ b/usbredirparser/
index d73ba77..53c1012 100644
--- a/usbredirparser/
+++ b/usbredirparser/
@@ -6,5 +6,9 @@ libusbredirparser_la_HEADERS = usbredirparser.h usbredirfilter.h usbredirproto.h
libusbredirparser_la_LDFLAGS = -version-info $(LIBUSBREDIRPARSER_SO_VERSION) \
+if OS_WIN32
+libusbredirparser_la_SOURCES += strtok_r.c strtok_r.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libusbredirparser.pc