aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libnl-tiny/src/include
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2016-12-19 17:18:18 +0200
committerJohn Crispin <john@phrozen.org>2016-12-20 09:35:36 +0100
commit3c1f20d0bb390f911c3da3334c6d94c19609c8c4 (patch)
treee4cfadc93dcc7bda1663f2c52b4d12382bf7a1cd /package/libs/libnl-tiny/src/include
parent4e1f7ad56e280da6ddd2c5a98c79b0d679f260fc (diff)
downloadupstream-3c1f20d0bb390f911c3da3334c6d94c19609c8c4.tar.gz
upstream-3c1f20d0bb390f911c3da3334c6d94c19609c8c4.tar.bz2
upstream-3c1f20d0bb390f911c3da3334c6d94c19609c8c4.zip
libnl-tiny: define _GNU_SOURCE if not defined
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>
Diffstat (limited to 'package/libs/libnl-tiny/src/include')
-rw-r--r--package/libs/libnl-tiny/src/include/netlink-local.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/libs/libnl-tiny/src/include/netlink-local.h b/package/libs/libnl-tiny/src/include/netlink-local.h
index 330100e805..53da8ca97e 100644
--- a/package/libs/libnl-tiny/src/include/netlink-local.h
+++ b/package/libs/libnl-tiny/src/include/netlink-local.h
@@ -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>