From f887631d1eba13f755562da3327babda803e0eb7 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 30 Aug 2016 15:26:27 +0200 Subject: [PATCH] netlink: Don't define USE_GNU Applications should never #define USE_GNU themselves, but rather _GNU_SOURCE. This patch removes USE_GNU and replaces it with including config.h which has _GNU_SOURCE defined if applicable for that platform See for example: https://gcc.gnu.org/ml/fortran/2005-10/msg00365.html --- src/monitor/monitor_netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/monitor/monitor_netlink.c b/src/monitor/monitor_netlink.c index 2226294..c4d56b3 100644 --- a/src/monitor/monitor_netlink.c +++ b/src/monitor/monitor_netlink.c @@ -21,11 +21,12 @@ along with this program. If not, see . */ +#include "config.h" + #include #include #include #include -#define __USE_GNU /* needed for struct ucred */ #include #include #include