0001-Fix-warning-on-wcsdup-implicit-declaration.patch 900 B

1234567891011121314151617181920212223242526272829
  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
  5. Define __GNU_SOURCE in cpp/hidapi/linux/hid.c (like already done in
  6. cpp/hidapi/libusb/hid.c) to fix implicit declaration of wcsdup function
  7. Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
  8. ---
  9. cpp/hidapi/linux/hid.c | 2 ++
  10. 1 file changed, 2 insertions(+)
  11. diff --git a/cpp/hidapi/linux/hid.c b/cpp/hidapi/linux/hid.c
  12. index dbf9b9b..c3eb22b 100644
  13. --- a/cpp/hidapi/linux/hid.c
  14. +++ b/cpp/hidapi/linux/hid.c
  15. @@ -21,6 +21,8 @@
  16. http://github.com/signal11/hidapi .
  17. ********************************************************/
  18. +#define _GNU_SOURCE /* needed for wcsdup() before glibc 2.10 */
  19. +
  20. /* C */
  21. #include <stdio.h>
  22. #include <string.h>
  23. --
  24. 1.9.1