Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Tue, 23 Apr 2024 13:12:33 +0000 (15:12 +0200)
committerSascha Steinbiss <satta@debian.org>
Tue, 23 Apr 2024 13:12:33 +0000 (15:12 +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 26ba8fa24b6420edf74cbe4ab1f10bf86741a3a2..7a8072002edd13cb5f870f14dfac854fab3c53fd 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 */