[Toybox] [PATCH] netcat: fix macOS build.

enh enh at google.com
Sat Aug 31 20:59:40 PDT 2019


The author of a55b7d7 added SOCK_CLOEXEC to the xsocket() calls. This
broke the macOS build, because macOS up to and including 10.14 doesn't
have SOCK_CLOEXEC. Luckily, xsocket() already uses the fcntl(FD_CLOEXEC)
workaround by default, so the fix is just to remove the explicit
mentions of SOCK_CLOEXEC.

Fixes #132.
---
 toys/net/netcat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-netcat-fix-macOS-build.patch
Type: text/x-patch
Size: 1522 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190831/846311b2/attachment.bin>


More information about the Toybox mailing list