From afaceadeda4496c3f846092c2deb1ae14f4c8c6e Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 23 Nov 2017 20:47:59 +0100 Subject: [PATCH] polipo: forcibly enable IPv6 support Currently `polipo.h` uses the conditional `(__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)` to decide whether to enable IPv6 support. This used to work for OpenWrt CC which uses uClibc disguising itself as Glibc 2.x but it does not work with Musl libc anymore as this library does not export any Glibc defines. Forcibly enable IPv6 support by passing `-DHAVE_IPv6` unconditionally through the build flags in the OpenWrt/LEDE Makefile. Signed-off-by: Jo-Philipp Wich --- net/polipo/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/polipo/Makefile b/net/polipo/Makefile index a853fb20f..93aa18a26 100644 --- a/net/polipo/Makefile +++ b/net/polipo/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=polipo PKG_VERSION:=1.1.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/$(PKG_NAME)/ @@ -33,6 +33,8 @@ define Package/polipo/description by a larger group. endef +TARGET_CFLAGS += -DHAVE_IPv6 + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \