Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Tue, 27 Sep 2022 21:24:59 +0000 (22:24 +0100)
committerSascha Steinbiss <satta@debian.org>
Tue, 27 Sep 2022 21:24:59 +0000 (22:24 +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 60161e43d674fa63d3ce3d96473e0653ed0c56b8..1bb09aa55d81c9cc138bcfe624d605e4939d0d93 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 967849ac91a018395008f43d0c05eea0378df4f6..37fb041e6cb82ec3127d04113513ed2f2cadc588 100644 (file)
@@ -33,9 +33,6 @@
 #define TRUE   1
 #define FALSE  0
 
-#define _GNU_SOURCE
-#define __USE_GNU
-
 #if HAVE_CONFIG_H
 #include <autoconf.h>
 #endif