Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Fri, 15 Sep 2023 19:18:47 +0000 (20:18 +0100)
committerSascha Steinbiss <satta@debian.org>
Fri, 15 Sep 2023 19:18:47 +0000 (20:18 +0100)
__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 ad56949c77c2b64f3a17d50c85e485ae92c6587a..7eaeda1534838a90f65586db8e2b559e0cf431f3 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 47d578f72780d9dbfa05ff945fab6e02d90002ee..80a2eac1d0fce583c3b39dcca2cbfac36efe7c9d 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 */