unix-socket: fix OSX build

MSG_NOSIGNAL is not defined on macOSX and SO_NOSIGPIPE is used
instead.
pull/392/head
Eric Leblond 12 years ago committed by Victor Julien
parent ce95fbdda0
commit d8ce2b1ca4

@ -40,6 +40,13 @@
#ifdef BUILD_UNIX_SOCKET
#include <jansson.h>
// MSG_NOSIGNAL does not exists on OS X
#ifdef OS_DARWIN
# ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL SO_NOSIGPIPE
# endif
#endif
#define SOCKET_PATH LOCAL_STATE_DIR "/run/suricata/"
#define SOCKET_FILENAME "suricata-command.socket"
#define SOCKET_TARGET SOCKET_PATH SOCKET_FILENAME

Loading…
Cancel
Save