Wouldn't it be better to just define MSG_NOSIGNAL here and get rid of the ifdefs all over that just define it?