diff options
author | wg <wg@FreeBSD.org> | 2014-05-30 02:19:55 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-05-30 02:19:55 +0800 |
commit | ce9a79bffc0ffc0a66a31df2df32bd33b669a29b (patch) | |
tree | b647378e0a5ab41a33a229991238876edcd2e4a2 /net | |
parent | ed0385a4ba2b2d8aaf2dfb04f4e7537d3163d2bc (diff) | |
download | freebsd-ports-gnome-ce9a79bffc0ffc0a66a31df2df32bd33b669a29b.tar.gz freebsd-ports-gnome-ce9a79bffc0ffc0a66a31df2df32bd33b669a29b.tar.zst freebsd-ports-gnome-ce9a79bffc0ffc0a66a31df2df32bd33b669a29b.zip |
net/minidlna: fix multicast and clang build
Submitted by: se (via email)
Diffstat (limited to 'net')
-rw-r--r-- | net/minidlna/Makefile | 1 | ||||
-rw-r--r-- | net/minidlna/files/patch-minissdp.c | 11 | ||||
-rw-r--r-- | net/minidlna/files/patch-upnpsoap.c | 11 |
3 files changed, 23 insertions, 0 deletions
diff --git a/net/minidlna/Makefile b/net/minidlna/Makefile index a60c4991b50a..2e5d3f5dabfc 100644 --- a/net/minidlna/Makefile +++ b/net/minidlna/Makefile @@ -3,6 +3,7 @@ PORTNAME= minidlna PORTVERSION= 1.1.2 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net multimedia www MASTER_SITES= SF diff --git a/net/minidlna/files/patch-minissdp.c b/net/minidlna/files/patch-minissdp.c new file mode 100644 index 000000000000..3f7cb950b205 --- /dev/null +++ b/net/minidlna/files/patch-minissdp.c @@ -0,0 +1,11 @@ +--- minissdp.c.orig 2014-03-06 16:30:25.000000000 -0800 ++++ minissdp.c 2014-05-29 09:34:58.763663228 -0700 +@@ -60,7 +60,7 @@ + AddMulticastMembership(int s, struct lan_addr_s *iface) + { + int ret; +-#ifdef HAVE_STRUCT_IP_MREQN ++#if defined(HAVE_STRUCT_IP_MREQN) && !defined(__FreeBSD__) + struct ip_mreqn imr; /* Ip multicast membership */ + /* setting up imr structure */ + imr.imr_multiaddr.s_addr = inet_addr(SSDP_MCAST_ADDR); diff --git a/net/minidlna/files/patch-upnpsoap.c b/net/minidlna/files/patch-upnpsoap.c new file mode 100644 index 000000000000..1357ddf48964 --- /dev/null +++ b/net/minidlna/files/patch-upnpsoap.c @@ -0,0 +1,11 @@ +--- upnpsoap.c~ 2014-05-26 15:54:53.125084054 +0200 ++++ upnpsoap.c 2014-05-26 15:56:21.415094729 +0200 +@@ -1300,7 +1300,7 @@ + free(str.data); + } + +-inline void ++static inline void + charcat(struct string_s *str, char c) + { + if (str->size <= str->off) |