Merge pull request #104 from openwrt-es/mcproxy-next

mcproxy: fix build with musl
This commit is contained in:
Steven Barth 2015-06-18 10:29:26 +02:00
commit 7f79a8ca39
4 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mcproxy PKG_NAME:=mcproxy
PKG_SOURCE_VERSION:=b7bd2d0809a0d1f177181c361b9a6c83e193b79a PKG_SOURCE_VERSION:=b7bd2d0809a0d1f177181c361b9a6c83e193b79a
PKG_VERSION:=2014-12-31-$(PKG_SOURCE_VERSION) PKG_VERSION:=2014-12-31-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://github.com/mcproxy/mcproxy.git PKG_SOURCE_URL:=git://github.com/mcproxy/mcproxy.git

View file

@ -4,9 +4,9 @@
#include <numeric> #include <numeric>
#include <unistd.h> #include <unistd.h>
+#ifdef __UCLIBC__ +#ifndef __GLIBC__
+#include "sourcefilter.cpp" +#include "sourcefilter.cpp"
+#endif /* __UCLIBC__ */ +#endif /* __GLIBC__ */
+ +
std::string ipAddrResolver(std::string ipAddr) std::string ipAddrResolver(std::string ipAddr)
{ {

View file

@ -3,9 +3,9 @@
@@ -38,6 +38,8 @@ @@ -38,6 +38,8 @@
#include <unistd.h> #include <unistd.h>
#ifdef __UCLIBC__ #ifndef __GLIBC__
+#define IP_MULTICAST_ALL 49 +#define IP_MULTICAST_ALL 49
+ +
#include "sourcefilter.cpp" #include "sourcefilter.cpp"
#endif /* __UCLIBC__ */ #endif /* __GLIBC__ */