summaryrefslogtreecommitdiff
path: root/usbredirparser/Makefile.am
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2012-05-14 13:05:28 +0300
committerUri Lublin <uril@redhat.com>2012-07-08 22:55:19 +0300
commit8db9136a14b78db713a564647e6e676e5fcb8a9b (patch)
tree65ecee8ff115d7d5e87dc2a190351b54dc0606e7 /usbredirparser/Makefile.am
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/Makefile.am')
-rw-r--r--usbredirparser/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/usbredirparser/Makefile.am b/usbredirparser/Makefile.am
index d73ba77..53c1012 100644
--- a/usbredirparser/Makefile.am
+++ b/usbredirparser/Makefile.am
@@ -6,5 +6,9 @@ libusbredirparser_la_HEADERS = usbredirparser.h usbredirfilter.h usbredirproto.h
libusbredirparser_la_LDFLAGS = -version-info $(LIBUSBREDIRPARSER_SO_VERSION) \
-no-undefined
+if OS_WIN32
+libusbredirparser_la_SOURCES += strtok_r.c strtok_r.h
+endif
+
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libusbredirparser.pc