polipo: forcibly enable IPv6 support 5172/head
authorJo-Philipp Wich <jo@mein.io>
Thu, 23 Nov 2017 19:47:59 +0000 (20:47 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 23 Nov 2017 19:54:45 +0000 (20:54 +0100)
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 <jo@mein.io>
net/polipo/Makefile

index a853fb20f999e07eae8b4e13aaa0332b60f4bc3f..93aa18a26a28b5e6cfd98904d27268f67ba77a02 100644 (file)
@@ -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)" \