File: missing-prototypes.patch

package info (click to toggle)
netperf 2.7.0%2Bgit20210121.3bc455b%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,784 kB
  • sloc: ansic: 41,887; sh: 5,277; xml: 3,129; python: 2,480; makefile: 70; awk: 68
file content (34 lines) | stat: -rw-r--r-- 823 bytes parent folder | download
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>