From 6a90f33a6fe4b29da52177d87249570af864645d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 25 Aug 2023 13:36:32 +0200 Subject: configure: use AC_USE_SYSTEM_EXTENSIONS to get _GNU_SOURCE Let "configure" detect which features are available. Also, nftables is a Linux project, so portability beyond gcc/clang and glibc/musl is less relevant. And even if it were, then feature detection by "configure" would still be preferable. Use AC_USE_SYSTEM_EXTENSIONS ([1]). Available since autoconf 2.60, from 2006 ([2]). [1] https://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Posix-Variants.html#index-AC_005fUSE_005fSYSTEM_005fEXTENSIONS-1046 [2] https://lists.gnu.org/archive/html/autoconf/2006-06/msg00111.html Signed-off-by: Thomas Haller Signed-off-by: Pablo Neira Ayuso --- include/nft.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'include/nft.h') diff --git a/include/nft.h b/include/nft.h index 4e66f8e6..0fd481c6 100644 --- a/include/nft.h +++ b/include/nft.h @@ -2,8 +2,6 @@ #ifndef NFTABLES_NFT_H #define NFTABLES_NFT_H -#define _GNU_SOURCE - #include #endif /* NFTABLES_NFT_H */ -- cgit v1.2.3