mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Add patches to fix mDNSResponder on FreeBSD. These patches have been
sent upstream, but I have not yet heard as to whether or not they have been committed. Reported by: markus Approved by: maintainer timeout
This commit is contained in:
parent
11264cef07
commit
2b54e91c09
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120547
3 changed files with 35 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
PORTNAME= howl
|
PORTNAME= howl
|
||||||
PORTVERSION= 0.9.6
|
PORTVERSION= 0.9.6
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES?= net devel
|
CATEGORIES?= net devel
|
||||||
MASTER_SITES= http://www.porchdogsoft.com/download/
|
MASTER_SITES= http://www.porchdogsoft.com/download/
|
||||||
|
|
||||||
|
|
23
net/howl/files/patch-src_lib_howl_Posix_posix_interface.c
Normal file
23
net/howl/files/patch-src_lib_howl_Posix_posix_interface.c
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
--- src/lib/howl/Posix/posix_interface.c.orig Sun Oct 17 19:30:04 2004
|
||||||
|
+++ src/lib/howl/Posix/posix_interface.c Sun Oct 17 19:31:47 2004
|
||||||
|
@@ -400,17 +400,19 @@
|
||||||
|
/* ip address */
|
||||||
|
sw_ipv4_address_init_from_saddr(&(nif->m_super.m_ipv4_address), ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr.s_addr);
|
||||||
|
|
||||||
|
-#if defined(__linux__)
|
||||||
|
/* get a socket for ioctling */
|
||||||
|
err = sw_posix_inet_socket(&sock);
|
||||||
|
sw_check_okay(err, exit);
|
||||||
|
|
||||||
|
+#if defined(SIOCGIFHWADDR)
|
||||||
|
/* mac address */
|
||||||
|
res = ioctl(sock, SIOCGIFHWADDR, ifr);
|
||||||
|
err = sw_translate_error(res == 0, errno);
|
||||||
|
sw_check_okay_log(err, exit);
|
||||||
|
sw_memcpy(nif->m_super.m_mac_address.m_id, (sw_uint8*)(ifr->ifr_hwaddr.sa_data), sizeof(sw_mac_address));
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
+#if defined(SIOCGIFFLAGS)
|
||||||
|
/* ifnet flags */
|
||||||
|
res = ioctl(sock, SIOCGIFFLAGS, ifr);
|
||||||
|
err = sw_translate_error(res == 0, errno);
|
11
net/howl/files/patch-src_lib_howl_socket.c
Normal file
11
net/howl/files/patch-src_lib_howl_socket.c
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/lib/howl/socket.c.orig Sun Oct 17 19:34:00 2004
|
||||||
|
+++ src/lib/howl/socket.c Sun Oct 17 19:34:12 2004
|
||||||
|
@@ -261,7 +261,7 @@
|
||||||
|
err = sw_translate_error(self->m_desc != SW_INVALID_SOCKET, sw_socket_errno());
|
||||||
|
sw_check_okay_log(err, exit);
|
||||||
|
|
||||||
|
-#if defined(__APPLE__) || defined(__VXWORKS__)
|
||||||
|
+#if defined(__APPLE__) || defined(__VXWORKS__) || defined(__FreeBSD__)
|
||||||
|
res = setsockopt(self->m_desc, SOL_SOCKET, SO_REUSEPORT, (char*) &opt, sizeof(opt));
|
||||||
|
#else
|
||||||
|
res = setsockopt(self->m_desc, SOL_SOCKET, SO_REUSEADDR, (char*) &opt, sizeof(opt));
|
Loading…
Add table
Reference in a new issue