From: Adrian Bunk Date: Thu, 8 Feb 2024 22:22:40 +0000 (+0100) Subject: Don't use __USE_GNU X-Git-Tag: archive/raspbian/1%7.0.3-1+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=84e17dd8c0db4f7ff15f84e442225f25019e254a;p=suricata.git Don't use __USE_GNU __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 --- diff --git a/configure.ac b/configure.ac index 4d23fcba..285ecbca 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AM_INIT_AUTOMAKE([tar-ustar subdir-objects]) AC_LANG([C]) + AC_USE_SYSTEM_EXTENSIONS LT_INIT PKG_PROG_PKG_CONFIG diff --git a/src/suricata-common.h b/src/suricata-common.h index fe8ec179..8bc9969e 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -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 */