mcproxy: fix build with musl

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2015-06-17 19:51:26 +02:00
parent 09beed4a4a
commit 898cc963d6
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__ */