blob: 8b60c54a30e64e35b5de9beb41310fa04d42eb13 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 88b9bc561ce42f2eb97ea041cd8920797b44dd53 Mon Sep 17 00:00:00 2001
2From: Rafael Cossovan <navossoc@gmail.com>
3Date: Tue, 3 Apr 2018 17:05:42 -0300
4Subject: [PATCH 3/3] Fixes a compile warning when building with musl: #warning
5 redirecting incorrect #include <sys/poll.h> to <poll.h>
6
7---
8 src/iface.cc | 2 +-
9 src/iface.h | 2 +-
10 src/proxy.h | 2 +-
11 src/rule.h | 2 +-
12 4 files changed, 4 insertions(+), 4 deletions(-)
13
14diff --git a/src/iface.cc b/src/iface.cc
15index f569d3c..7cbb57f 100644
16--- a/src/iface.cc
17+++ b/src/iface.cc
18@@ -30,7 +30,7 @@
19 #include <sys/ioctl.h>
20 #include <sys/types.h>
21 #include <sys/socket.h>
22-#include <sys/poll.h>
23+#include <poll.h>
24
25 #include <linux/filter.h>
26
27diff --git a/src/iface.h b/src/iface.h
28index 9db59ab..df7ff35 100644
29--- a/src/iface.h
30+++ b/src/iface.h
31@@ -20,7 +20,7 @@
32 #include <vector>
33 #include <map>
34
35-#include <sys/poll.h>
36+#include <poll.h>
37 #include <net/ethernet.h>
38
39 #include "ndppd.h"
40diff --git a/src/proxy.h b/src/proxy.h
41index 8141b2a..9299d9a 100644
42--- a/src/proxy.h
43+++ b/src/proxy.h
44@@ -19,7 +19,7 @@
45 #include <vector>
46 #include <map>
47
48-#include <sys/poll.h>
49+#include <poll.h>
50
51 #include "ndppd.h"
52
53diff --git a/src/rule.h b/src/rule.h
54index 0c2f79a..23086e6 100644
55--- a/src/rule.h
56+++ b/src/rule.h
57@@ -20,6 +20,6 @@
58 #include <map>
59
60-#include <sys/poll.h>
61+#include <poll.h>
62
63 #include "ndppd.h"
64