Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Thu, 20 Jul 2023 09:03:07 +0000 (10:03 +0100)
committerSascha Steinbiss <satta@debian.org>
Thu, 20 Jul 2023 09:03:07 +0000 (10:03 +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 9828faa9db1df2661cd8275d9c4443b8e939058c..e6c2851adbc2a3b4f062dd79e3ea02c02d6cd574 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 47d578f72780d9dbfa05ff945fab6e02d90002ee..80a2eac1d0fce583c3b39dcca2cbfac36efe7c9d 100644 (file)
@@ -33,9 +33,6 @@
 #define TRUE   1
 #define FALSE  0
 
-#define _GNU_SOURCE
-#define __USE_GNU
-
 #if defined(__clang_analyzer__)
 /* clang analyzer acts as DEBUG_VALIDATION in some places, so
  * force this so #ifdef DEBUG_VALIDATION code gets included */