mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
net/minidlna: fix multicast and clang build
Submitted by: se (via email)
This commit is contained in:
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
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= minidlna
|
||||
PORTVERSION= 1.1.2
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= net multimedia www
|
||||
MASTER_SITES= SF
|
||||
|
|
11
net/minidlna/files/patch-minissdp.c
Normal file
11
net/minidlna/files/patch-minissdp.c
Normal 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);
|
11
net/minidlna/files/patch-upnpsoap.c
Normal file
11
net/minidlna/files/patch-upnpsoap.c
Normal 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)
|
Loading…
Add table
Reference in a new issue