net-analyzer/openbsd-netcat: fix patching

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/20267
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Michael Mair-Keimberger
2021-04-05 18:45:28 +02:00
committed by Sam James
parent 0d1455ab4a
commit 094258d6ac
2 changed files with 5 additions and 7 deletions

View File

@@ -1,7 +1,5 @@
Allow compilation on Darwin
--- netcat.c
+++ netcat.c
--- a/netcat.c
+++ b/netcat.c
@@ -43,11 +43,13 @@
#include <arpa/telnet.h>
#include <arpa/inet.h>
@@ -73,8 +71,8 @@ Allow compilation on Darwin
int
main(int argc, char *argv[])
{
--- socks.c
+++ socks.c
--- a/socks.c
+++ b/socks.c
@@ -38,7 +38,7 @@
#include <string.h>
#include <unistd.h>

View File

@@ -29,7 +29,7 @@ src_prepare() {
default
if [[ ${CHOST} == *-darwin* ]] ; then
# this undoes some of the Debian/Linux changes
epatch "${FILESDIR}"/${P}-darwin.patch
eapply "${FILESDIR}"/${P}-darwin.patch
fi
}