summaryrefslogtreecommitdiffstats
path: root/ndppd/patches/0003-fix-poll-header.patch
blob: 2e9143197d0ebc31e83b5ee9c8e3b6abcd67f2a2 (plain)
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
47
48
49
50
51
52
53
54
55
56
57
From 88b9bc561ce42f2eb97ea041cd8920797b44dd53 Mon Sep 17 00:00:00 2001
From: Rafael Cossovan <navossoc@gmail.com>
Date: Tue, 3 Apr 2018 17:05:42 -0300
Subject: [PATCH 3/3] Fixes a compile warning when building with musl: #warning
 redirecting incorrect #include <sys/poll.h> to <poll.h>

---
 src/iface.cc | 2 +-
 src/iface.h  | 2 +-
 src/proxy.h  | 2 +-
 src/rule.h   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

--- a/src/iface.cc
+++ b/src/iface.cc
@@ -30,7 +30,7 @@
 #include <sys/ioctl.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/poll.h>
+#include <poll.h>
 
 #include <linux/filter.h>
 
--- a/src/iface.h
+++ b/src/iface.h
@@ -20,7 +20,7 @@
 #include <vector>
 #include <map>
 
-#include <sys/poll.h>
+#include <poll.h>
 #include <net/ethernet.h>
 
 #include "ndppd.h"
--- a/src/proxy.h
+++ b/src/proxy.h
@@ -19,7 +19,7 @@
 #include <vector>
 #include <map>
 
-#include <sys/poll.h>
+#include <poll.h>
 
 #include "ndppd.h"
 
--- a/src/rule.h
+++ b/src/rule.h
@@ -20,7 +20,7 @@
 #include <map>
 #include <list>
 
-#include <sys/poll.h>
+#include <poll.h>
 
 #include "ndppd.h"