From: Adrian Bunk Date: Tue, 31 Jan 2023 13:34:17 +0000 (+0000) Subject: Don't use __USE_GNU X-Git-Tag: archive/raspbian/1%6.0.10-1+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c4408c901fd941cede35421445e5e697f2ddaf7d;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 ea94e245..5750637d 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 36ad48cf..52072081 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 HAVE_CONFIG_H #include #endif