From 7b60de620129eb1278cb083fe1b4c11235ac2e77 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Tue, 29 Nov 2022 10:19:06 +0000 Subject: [PATCH] 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 --- configure.ac | 1 + src/suricata-common.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d76940fc..55ba88b6 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 -- 2.30.2