Handling of MSG_NOSIGNAL is spread over several source files.
It should be handled in compat.h (defined if not defined on the system) and then used in src/net.cpp, src/netbase.cpp. Right now, the ifdef code is in all files.
Low prio, I'll take care about this issue.