1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From: Andreas Beckmann <anbe@debian.org>
Date: Tue, 9 Sep 2025 13:32:13 +0200
Subject: fix building with -Werror=implicit-function-declaration
---
src/netlib.c | 2 ++
src/nettest_omni.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/src/netlib.c b/src/netlib.c
index 5783e9a..49ffaef 100644
--- a/src/netlib.c
+++ b/src/netlib.c
@@ -76,6 +76,8 @@ char netlib_id[]="\
/* */
/****************************************************************/
+#define _GNU_SOURCE
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
diff --git a/src/nettest_omni.c b/src/nettest_omni.c
index 76add0e..d05a248 100644
--- a/src/nettest_omni.c
+++ b/src/nettest_omni.c
@@ -24,6 +24,7 @@
*/
+#define _GNU_SOURCE
#ifdef HAVE_CONFIG_H
#include <config.h>
|