0
0
mirror of https://github.com/openwrt/routing.git synced 2025-01-18 22:11:48 +00:00
routing/ndppd/patches/0003-fix-poll-header.patch
谢致邦 (XIE Zhibang) 8f5ed0f95f ndppd: update to version 0.2.6
Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
2024-11-14 21:42:30 +01:00

58 lines
1.1 KiB
Diff

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"