From fc05cedbdda8ff69cd4fe01f136ade131fbf6cc4 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 21 Jul 2014 18:34:01 +0200 Subject: [PATCH] : turn off MSG_NOSIGNAL . this unimplemented flag causes runtime problems (ENOSYS on send()) for e.g. libfetch when used . restores functionality of pkg_add (remote), fetch --- sys/sys/socket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/socket.h b/sys/sys/socket.h index e910d1656..cba624e73 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -497,7 +497,9 @@ struct msghdr { #define MSG_DONTWAIT 0x0080 /* this message should be nonblocking */ #define MSG_BCAST 0x0100 /* this message was rcvd using link-level brdcst */ #define MSG_MCAST 0x0200 /* this message was rcvd using link-level mcast */ +#ifndef __minix #define MSG_NOSIGNAL 0x0400 /* do not generate SIGPIPE on EOF */ +#endif #if defined(_NETBSD_SOURCE) #define MSG_CMSG_CLOEXEC 0x0800 /* close on exec receiving fd */ #define MSG_NBIO 0x1000 /* use non-blocking I/O */ -- 2.11.4.GIT