ports/security/nmap-devel/files/patch-libdnet-stripped_src_intf.c
Cy Schubert c89426b1f2 security/nmap-devel: New port
Introduce nmap development port. The development branch includes
prerequisite updates including the pcre2 replacement of pcre.
This port tracks the nmap/nmap github repo.
2024-03-28 13:53:59 -07:00

11 lines
441 B
C

--- libdnet-stripped/src/intf.c.orig 2016-07-27 20:11:27 UTC
+++ libdnet-stripped/src/intf.c
@@ -163,7 +163,7 @@ intf_open(void)
#if defined(SIOCGLIFCONF) || defined(SIOCGIFNETMASK_IN6) || defined(SIOCGIFNETMASK6)
if ((intf->fd6 = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
# ifdef EPROTONOSUPPORT
- if (errno != EPROTONOSUPPORT)
+ if (errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)
# endif
return (intf_close(intf));
}