1 #ifndef CEPH_SOCK_COMPAT_H
2 #define CEPH_SOCK_COMPAT_H
4 #include "include/compat.h"
7 * This optimization may not be available on all platforms (e.g. OSX).
8 * Apparently a similar approach based on TCP_CORK can be used.
15 * On BSD SO_NOSIGPIPE can be set via setsockopt to block SIGPIPE.
18 # define MSG_NOSIGNAL 0
20 # define CEPH_USE_SO_NOSIGPIPE
22 # define CEPH_USE_SIGPIPE_BLOCKER
23 # warning "Using SIGPIPE blocking instead of suppression; this is not well-tested upstream!"