summaryrefslogtreecommitdiff
path: root/libs/hidapi
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-05-20 12:38:49 +0200
committerRobin Gareus <robin@gareus.org>2017-05-20 12:39:49 +0200
commit9fc65b274e5e9c2ef46af87a9685de2d409b0d69 (patch)
tree5bc57120442adb88fb0a8b08e46f4898c8ba620c /libs/hidapi
parent6926b7eb75ccd26a6a39d24cea8ea45c7bd7101b (diff)
Fix libhid compile with /recent/ libc (GNU_SOURCE)
- strtok_r - strdup - wcsdup
Diffstat (limited to 'libs/hidapi')
-rw-r--r--libs/hidapi/linux/hid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hidapi/linux/hid.c b/libs/hidapi/linux/hid.c
index 56dac0fab7..bc6429e4e1 100644
--- a/libs/hidapi/linux/hid.c
+++ b/libs/hidapi/linux/hid.c
@@ -21,6 +21,8 @@
http://github.com/signal11/hidapi .
********************************************************/
+#define _POSIX_C_SOURCE 200809L
+
/* C */
#include <stdio.h>
#include <string.h>