From: Alexandru Ardelean Date: Mon, 19 Dec 2016 15:18:18 +0000 (+0200) Subject: libnl-tiny: define _GNU_SOURCE if not defined X-Git-Tag: v17.01.0-rc1~472 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fchunkeey.git;a=commitdiff_plain;h=3c1f20d0bb390f911c3da3334c6d94c19609c8c4;ds=sidebyside 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 --- 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 #include