aboutsummaryrefslogtreecommitdiff
path: root/net/mdnsresponder
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-06-19 14:54:19 -0700
committerRosen Penev <rosenp@gmail.com>2019-06-19 14:54:19 -0700
commit16e5309750690cb196d1b88a8147d30f5c45473e (patch)
treebbb911c24a3d584c66cdfc732d22145671e00896 /net/mdnsresponder
parentd1517aa627619563a8d51c3ee550042aa7c35207 (diff)
mdnsresponder: Fix compilation with uClibc-ng
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/mdnsresponder')
-rw-r--r--net/mdnsresponder/Makefile2
-rw-r--r--net/mdnsresponder/patches/010-uclibc.patch13
2 files changed, 14 insertions, 1 deletions
diff --git a/net/mdnsresponder/Makefile b/net/mdnsresponder/Makefile
index e209b8ff7..6cb5ebd4b 100644
--- a/net/mdnsresponder/Makefile
+++ b/net/mdnsresponder/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mDNSResponder
PKG_VERSION:=IETF104
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=mDNSResponder-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://opensource.apple.com/tarballs/mDNSResponder/IETF/
diff --git a/net/mdnsresponder/patches/010-uclibc.patch b/net/mdnsresponder/patches/010-uclibc.patch
new file mode 100644
index 000000000..a4d1308ee
--- /dev/null
+++ b/net/mdnsresponder/patches/010-uclibc.patch
@@ -0,0 +1,13 @@
+--- a/mDNSShared/PlatformCommon.c
++++ b/mDNSShared/PlatformCommon.c
+@@ -43,6 +43,10 @@
+ typedef unsigned int socklen_t;
+ #endif
+
++#ifndef TCP_NOTSENT_LOWAT
++#define TCP_NOTSENT_LOWAT 25
++#endif
++
+ #if MDNS_MALLOC_DEBUGGING
+ // We ONLY want this for malloc debugging--on a running production system we want to deal with
+ // malloc failures, not just die. There is a small performance penalty for enabling these options