From 9fc65b274e5e9c2ef46af87a9685de2d409b0d69 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 20 May 2017 12:38:49 +0200 Subject: [PATCH] Fix libhid compile with /recent/ libc (GNU_SOURCE) - strtok_r - strdup - wcsdup --- libs/hidapi/linux/hid.c | 2 ++ 1 file changed, 2 insertions(+) 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 #include