Don't use __USE_GNU
authorAdrian Bunk <bunk@debian.org>
Tue, 12 Jul 2022 14:57:16 +0000 (15:57 +0100)
committerSascha Steinbiss <satta@debian.org>
Tue, 12 Jul 2022 14:57:16 +0000 (15:57 +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 09eca9952798a0941e78cfc73a7e1a8c2f3e0fe8..ba36ef90fa1a03892e65947d2ac215c6f1f7e7c1 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