Fix libhid compile with /recent/ libc (GNU_SOURCE)
authorRobin Gareus <robin@gareus.org>
Sat, 20 May 2017 10:38:49 +0000 (12:38 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 20 May 2017 10:39:49 +0000 (12:39 +0200)
- strtok_r
- strdup
- wcsdup

libs/hidapi/linux/hid.c

index 56dac0fab77fd384527e7e14cc0fea759b61e12a..bc6429e4e1f0e5f3e7d4bd1453e6641dd1634227 100644 (file)
@@ -21,6 +21,8 @@
         http://github.com/signal11/hidapi .
 ********************************************************/
 
+#define _POSIX_C_SOURCE 200809L
+
 /* C */
 #include <stdio.h>
 #include <string.h>