From 463397cf1e064185110fe57c568d73f99a06f5d1 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 17 Feb 2021 10:35:54 +0000 Subject: gentoo resync : 17.02.2021 --- .../files/openbsd-netcat-1.190-darwin.patch | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'net-analyzer/openbsd-netcat/files/openbsd-netcat-1.190-darwin.patch') diff --git a/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.190-darwin.patch b/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.190-darwin.patch index e1a462e746b7..a8453c09067c 100644 --- a/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.190-darwin.patch +++ b/net-analyzer/openbsd-netcat/files/openbsd-netcat-1.190-darwin.patch @@ -4,7 +4,7 @@ diff --git a/netcat.c b/netcat.c index a0fb51b..bbb5dd1 100644 --- a/netcat.c +++ b/netcat.c -@@ -51,11 +51,13 @@ +@@ -51,11 +51,16 @@ # include #endif @@ -18,6 +18,9 @@ index a0fb51b..bbb5dd1 100644 -# define IPTOS_LOWCOST 0x02 # define IPTOS_MINCOST IPTOS_LOWCOST #endif /* IPTOS_LOWDELAY */ ++#ifndef SOCK_CLOEXEC ++# define SOCK_CLOEXEC 0 ++#endif @@ -108,8 +110,9 @@ # include @@ -87,17 +90,7 @@ index a0fb51b..bbb5dd1 100644 /* For now, all errnos are fatal */ err(1, "accept"); } -@@ -1092,14 +1091,16 @@ - int s, save_errno; - - if (uflag) { -- if ((s = unix_bind(unix_dg_tmp_socket, SOCK_CLOEXEC)) < 0) -+ if ((s = unix_bind(unix_dg_tmp_socket, 0)) < 0) - return -1; - } else { -- if ((s = socket(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0)) < 0) { -+ if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) { - errx(1,"create unix socket failed"); +@@ -1100,6 +1099,8 @@ return -1; } } -- cgit v1.2.3