Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Tue, 29 Nov 2022 10:19:06 +0000 (10:19 +0000)
committerSascha Steinbiss <satta@debian.org>
Tue, 29 Nov 2022 10:19:06 +0000 (10:19 +0000)
__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 d76940fcba727f37b028922720b10cd8596321db..55ba88b6063d270cf36d16c0bd2572968b655c31 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 36ad48cf26cb82c2acdfa34e195f8a1a8c71ffd4..5207208148a805ead09d562c86f22dcfa150f3c6 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