From f1f12e73c9a62f29decab82c56793e4e72eea911 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 10 Jan 2012 21:40:25 +0000 Subject: adjust socket_flags for mac os x Signed-off-by: Michael Krelin --- diff --git a/src/eyefiworker.cc b/src/eyefiworker.cc index c971922..2d7827c 100644 --- a/src/eyefiworker.cc +++ b/src/eyefiworker.cc @@ -5,7 +5,15 @@ eyefiworker::eyefiworker() : eyefiService(SOAP_IO_STORE|SOAP_IO_KEEPALIVE) { bind_flags = SO_REUSEADDR; max_keep_alive = 0; - socket_flags = MSG_NOSIGNAL; + socket_flags = +#if defined(MSG_NOSIGNAL) + MSG_NOSIGNAL +#elif defined(SO_NOSIGPIPE) + SO_NOSIGPIPE +#else +#error Something is wrong with sigpipe prevention on the platform +#endif + ; } int eyefiworker::run(int port) { -- cgit v0.9.0.2