Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Thu, 27 Jun 2024 12:29:40 +0000 (14:29 +0200)
committerSascha Steinbiss <satta@debian.org>
Thu, 27 Jun 2024 12:29:40 +0000 (14:29 +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 aa9cdf0fd7fa827c1e161877e889be15571b60b3..896c9db9064b1805304026bfa8a36d2d79a142e7 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 */