mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 18:35:06 +00:00
Error:
src/logger.cc: In static member function 'static std::string ndppd::logger::err()':
src/logger.cc:86:22: error: could not convert 'strerror_r((*__errno_location()), ((char*)(& buf)), sizeof (buf))'
from 'int' to 'std::string {aka std::basic_string<char>}'
return strerror_r(errno, buf, sizeof(buf));
Added and modified some patches from
eb81b8f2d6
...navossoc:master
(See https://github.com/DanielAdolfsson/ndppd/issues/40 for details)
Compile-tested: octeon + mpc85xx openwrt master, musl + uclibc++
octeon openwrt master, glibc + libstdc++
Run-tested: octeon openwrt master, musl + uclibc++
Signed-off-by: Martin Strobel <arctus@crza.de>
65 lines
1.3 KiB
Diff
65 lines
1.3 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(-)
|
|
|
|
diff --git a/src/iface.cc b/src/iface.cc
|
|
index f569d3c..7cbb57f 100644
|
|
--- 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>
|
|
|
|
diff --git a/src/iface.h b/src/iface.h
|
|
index 9db59ab..df7ff35 100644
|
|
--- 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"
|
|
diff --git a/src/proxy.h b/src/proxy.h
|
|
index 8141b2a..9299d9a 100644
|
|
--- 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"
|
|
|
|
diff --git a/src/rule.h b/src/rule.h
|
|
index 0c2f79a..23086e6 100644
|
|
--- a/src/rule.h
|
|
+++ b/src/rule.h
|
|
@@ -20,6 +20,6 @@
|
|
#include <map>
|
|
|
|
-#include <sys/poll.h>
|
|
+#include <poll.h>
|
|
|
|
#include "ndppd.h"
|
|
|