net/minidlna: fix multicast and clang build

Submitted by:	se (via email)
This commit is contained in:
William Grzybowski 2014-05-29 18:19:55 +00:00
parent e7512728d3
commit f4969d1ada
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355719
3 changed files with 23 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= minidlna
PORTVERSION= 1.1.2
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net multimedia www
MASTER_SITES= SF

View file

@ -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);

View file

@ -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)