branch Attitude Adjustment packages
[12.09/packages.git] / net / mdnsresponder / patches / 002-uclibc.patch
1 diff -u --recursive mDNSResponder-214.3.2-vanilla/mDNSPosix/Makefile mDNSResponder-214.3.2/mDNSPosix/Makefile
2 --- mDNSResponder-214.3.2-vanilla/mDNSPosix/Makefile    2010-10-15 08:38:44.798283212 -0500
3 +++ mDNSResponder-214.3.2/mDNSPosix/Makefile    2010-10-15 08:48:27.334503432 -0500
4 @@ -361,12 +361,16 @@
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 -DTARGET_OS_LINUX
12  FLEXFLAGS_OS = -l
13  JAVACFLAGS_OS += -I$(JDK)/include/linux
14 +# uClibc does not provide NSS, do not compile nss_mdns:
15 +ifneq ($(os),linux-uclibc)
16  OPTIONALTARG = nss_mdns
17  OPTINSTALL   = InstalledNSS
18 +endif
19  else
20  
21  ifeq ($(os),netbsd)