mcproxy: Fix compilation with uClibc-ng
authorRosen Penev <rosenp@gmail.com>
Mon, 27 May 2019 07:04:01 +0000 (00:04 -0700)
committerPaul Spooren <mail@aparcar.org>
Mon, 28 Feb 2022 11:43:08 +0000 (12:43 +0100)
uClibc-ng also defines __GLIBC__, which messes up the check.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit b3ebe49dabd95cf834e1665117454448cea30009)

mcproxy/Makefile
mcproxy/patches/0003-add-sourcefilter.patch
mcproxy/patches/0004-add-defs.patch

index 637298bd30e63ad31e51fb36b0a7bdde315ed43d..456c1ba3ccf0dfc71a4a390f21eeef48ed03ce00 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=mcproxy
 PKG_SOURCE_VERSION:=93b5ace42268160ebbfff4c61818fb15fa2d9b99
 PKG_VERSION:=2017-08-24-$(PKG_SOURCE_VERSION)
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/mcproxy/mcproxy.git
index 2f64975e47ab51f23750b54d10965c46bbc8c522..6e50263ed0c08ebf68202e735b10b197e8eb9c35 100644 (file)
@@ -4,7 +4,7 @@
  #include <numeric>
  #include <unistd.h>
  
-+#ifndef __GLIBC__
++#if !defined(__GLIBC__) || defined(__UCLIBC__)
 +#include "sourcefilter.cpp"
 +#endif /* __GLIBC__ */
 +
index a1105c9c5dc45b5953c1c1c990e35503d5110c97..19feb8864088fb15e6a8f43d603d003e6f257b05 100644 (file)
@@ -3,7 +3,7 @@
 @@ -38,6 +38,8 @@
  #include <unistd.h>
  
- #ifndef __GLIBC__
+ #if !defined(__GLIBC__) || defined(__UCLIBC__)
 +#define IP_MULTICAST_ALL 49
 +
  #include "sourcefilter.cpp"