Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Thu, 19 Oct 2023 17:30:48 +0000 (18:30 +0100)
committerSascha Steinbiss <satta@debian.org>
Thu, 19 Oct 2023 17:30:48 +0000 (18:30 +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 f8e63e90dd4e2e8b53add76578ae62b194e2729f..0b34a782bfa967050de3965df2abfb614f88bece 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 fe8ec179dff31eb4f277efd8b1afd4cab3b67021..8bc9969ebd5993e84759bff54939633a6ff5108d 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 */