Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Mon, 14 Oct 2024 08:48:09 +0000 (10:48 +0200)
committerSascha Steinbiss <satta@debian.org>
Mon, 14 Oct 2024 08:48:09 +0000 (10:48 +0200)
__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 21343c4a37f537f72ba06e2278dae30fbaa7350b..de27ea4085de1efd40fcd2ef15f4476e1d80af94 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 */