Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Thu, 28 Apr 2022 06:51:06 +0000 (07:51 +0100)
committerSascha Steinbiss <satta@debian.org>
Thu, 28 Apr 2022 06:51:06 +0000 (07:51 +0100)
__USE_GNU is a glibc-internal symbol.
AC_USE_SYSTEM_EXTENSIONS is the proper autoconf
way to enable extensions.

Gbp-Pq: Name no-use-gnu.patch

configure.ac
src/suricata-common.h

index 8ff678e80c304a9ae159d6fad42dd6c8fc3972d9..71ee73c4c275308c339c976ad9d03ceb7e1cf0e2 100644 (file)
@@ -6,6 +6,7 @@
     AM_INIT_AUTOMAKE([tar-ustar subdir-objects])
 
     AC_LANG([C])
+    AC_USE_SYSTEM_EXTENSIONS
     LT_INIT
     PKG_PROG_PKG_CONFIG
 
index 967849ac91a018395008f43d0c05eea0378df4f6..37fb041e6cb82ec3127d04113513ed2f2cadc588 100644 (file)
@@ -33,9 +33,6 @@
 #define TRUE   1
 #define FALSE  0
 
-#define _GNU_SOURCE
-#define __USE_GNU
-
 #if HAVE_CONFIG_H
 #include <autoconf.h>
 #endif