From bbab3af4aa9d4aa26c2a7fa2a62e8c88d59408f6 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 15 Jul 2013 20:50:55 +0000 Subject: [PATCH] darkstat: fix DNS resolution on uClibc (#12323) SVN-Revision: 37351 --- net/darkstat/Makefile | 4 ++-- net/darkstat/patches/100-do-not-use-NI_IDN.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 net/darkstat/patches/100-do-not-use-NI_IDN.patch diff --git a/net/darkstat/Makefile b/net/darkstat/Makefile index f0013c9a7..00e4da6ac 100644 --- a/net/darkstat/Makefile +++ b/net/darkstat/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2007-2012 OpenWrt.org +# Copyright (C) 2007-2013 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=darkstat PKG_VERSION:=3.0.715 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://unix4lyfe.org/darkstat diff --git a/net/darkstat/patches/100-do-not-use-NI_IDN.patch b/net/darkstat/patches/100-do-not-use-NI_IDN.patch new file mode 100644 index 000000000..35133a323 --- /dev/null +++ b/net/darkstat/patches/100-do-not-use-NI_IDN.patch @@ -0,0 +1,12 @@ +--- a/dns.c ++++ b/dns.c +@@ -346,9 +346,6 @@ dns_main(void) + + reply.addr = ip; + flags = NI_NAMEREQD; +-# ifdef NI_IDN +- flags |= NI_IDN; +-# endif + switch (ip.family) { + case IPv4: + sin.sin_family = AF_INET; -- 2.30.2