From 1702252b03d5a25287bb53a519b94284b09f7cdc Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 25 Aug 2023 13:36:31 +0200 Subject: include: don't define _GNU_SOURCE in public header _GNU_SOURCE is supposed to be defined as first thing, before including any libc headers. Defining it in the public header of nftables is wrong, because it would only (somewhat) work if the user includes the nftables header as first thing too. But that is not what users commonly would do, in particular with autotools projects, where users would include first. It's also unnecessary. Nothing in "nftables/libnftables.h" itself requires _GNU_SOURCE. Drop it. Signed-off-by: Thomas Haller Signed-off-by: Pablo Neira Ayuso --- include/nftables/libnftables.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/nftables') diff --git a/include/nftables/libnftables.h b/include/nftables/libnftables.h index cc059692..c1d48d76 100644 --- a/include/nftables/libnftables.h +++ b/include/nftables/libnftables.h @@ -9,7 +9,6 @@ #ifndef LIB_NFTABLES_H #define LIB_NFTABLES_H -#define _GNU_SOURCE #include #include #include -- cgit v1.2.3