File: 0007-Patch-deprecated-sys-sysctl.h-problem.patch

package info (click to toggle)
nextepc 0.3.10%2Bnods-4.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,984 kB
  • sloc: ansic: 165,079; javascript: 6,887; yacc: 2,767; python: 2,567; makefile: 2,405; lex: 1,732; xml: 795; php: 486; sh: 349; sql: 337; perl: 75; awk: 35; cpp: 6
file content (46 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (4)
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
35
36
37
38
39
40
41
42
43
44
45
46
From: Ruben Undheim <ruben.undheim@gmail.com>
Date: Sat, 16 Jan 2021 09:30:16 +0000
Subject: Patch deprecated sys/sysctl.h problem

---
 lib/ipfw/dummynet.c | 1 -
 lib/ipfw/ipfw2.c    | 1 -
 lib/ipfw/tables.c   | 1 -
 3 files changed, 3 deletions(-)

diff --git a/lib/ipfw/dummynet.c b/lib/ipfw/dummynet.c
index f313675..a4fbe61 100644
--- a/lib/ipfw/dummynet.c
+++ b/lib/ipfw/dummynet.c
@@ -18,7 +18,6 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 /* XXX there are several sysctl leftover here */
-#include <sys/sysctl.h>
 
 #include "ipfw2.h"
 
diff --git a/lib/ipfw/ipfw2.c b/lib/ipfw/ipfw2.c
index 949bc8f..cd30b3b 100644
--- a/lib/ipfw/ipfw2.c
+++ b/lib/ipfw/ipfw2.c
@@ -24,7 +24,6 @@
 #include <sys/param.h>
 #include <sys/socket.h>
 #include <sys/sockio.h>
-#include <sys/sysctl.h>
 
 #include "ipfw2.h"
 
diff --git a/lib/ipfw/tables.c b/lib/ipfw/tables.c
index e75b59a..fa8066a 100644
--- a/lib/ipfw/tables.c
+++ b/lib/ipfw/tables.c
@@ -20,7 +20,6 @@
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/socket.h>
-#include <sys/sysctl.h>
 
 #include <ctype.h>
 #include <err.h>