python-whoosh: bump to version 2.7.4
[buildroot-gz.git] / package / openzwave / 0001-Fix-warning-on-wcsdup-implicit-declaration.patch
blob1fe30e41d8ffa78841138bf93b86c85b44503b4f
1 From 0878d933223158343af3fe13e03bcd128e8b4cbc Mon Sep 17 00:00:00 2001
2 From: Fabrice Fontaine <fabrice.fontaine@orange.com>
3 Date: Fri, 22 Apr 2016 17:06:27 +0200
4 Subject: [PATCH 1/1] Fix warning on wcsdup implicit declaration
6 Define __GNU_SOURCE in cpp/hidapi/linux/hid.c (like already done in
7 cpp/hidapi/libusb/hid.c) to fix implicit declaration of wcsdup function
9 Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
10 ---
11 cpp/hidapi/linux/hid.c | 2 ++
12 1 file changed, 2 insertions(+)
14 diff --git a/cpp/hidapi/linux/hid.c b/cpp/hidapi/linux/hid.c
15 index dbf9b9b..c3eb22b 100644
16 --- a/cpp/hidapi/linux/hid.c
17 +++ b/cpp/hidapi/linux/hid.c
18 @@ -21,6 +21,8 @@
19 http://github.com/signal11/hidapi .
20 ********************************************************/
22 +#define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */
24 /* C */
25 #include <stdio.h>
26 #include <string.h>
27 --
28 1.9.1