[package] add mDNSReponder (#6102)
[openwrt/svn-archive/archive.git] / net / mdnsresponder / patches / 002-uclibc.patch
1 diff -u --recursive mDNSResponder-107.6-vanilla/mDNSPosix/Makefile mDNSResponder-107.6/mDNSPosix/Makefile
2 --- mDNSResponder-107.6-vanilla/mDNSPosix/Makefile 1970-01-01 08:24:35.000000000 -0500
3 +++ mDNSResponder-107.6/mDNSPosix/Makefile 1970-01-01 08:32:57.000000000 -0500
4 @@ -309,11 +309,15 @@
5 endif
6 else
7
8 -ifeq ($(os),linux)
9 +# Any variant containing linux:
10 +ifeq ($(findstring linux,$(os)),linux)
11 CFLAGS_OS = -DNOT_HAVE_SA_LEN -DUSES_NETLINK -DHAVE_LINUX
12 JAVACFLAGS_OS += -I$(JDK)/include/linux
13 +# uClibc does not provide NSS, do not compile nss_mdns:
14 +ifneq ($(os),linux-uclibc)
15 OPTIONALTARG = nss_mdns
16 OPTINSTALL = InstalledNSS
17 +endif
18 else
19
20 ifeq ($(os),netbsd)