libnl-tiny: define _GNU_SOURCE if not defined
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Mon, 19 Dec 2016 15:18:18 +0000 (17:18 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 20 Dec 2016 08:35:36 +0000 (09:35 +0100)
If _GNU_SOURCE was added as part of a package's TARGET_CFLAGS,
then compilation would fail for that module (especially if
warnings get treated as errors).

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
package/libs/libnl-tiny/src/include/netlink-local.h

index 330100e805dd40b6a1f4049d29455bf548f1f0de..53da8ca97e40afa62243ca29aa7f5ea20e17fbdd 100644 (file)
@@ -11,7 +11,9 @@
 
 #ifndef NETLINK_LOCAL_H_
 #define NETLINK_LOCAL_H_
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include <stdio.h>
 #include <errno.h>