From c8de248db07130417ad1899f4ef2d62396c693fc Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 19 Dec 2016 17:18:18 +0200 Subject: [PATCH] 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 --- src/include/netlink-local.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/include/netlink-local.h b/src/include/netlink-local.h index 330100e..53da8ca 100644 --- a/src/include/netlink-local.h +++ b/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 -- 2.30.2