From 050672e69a95a395860d0411544d367086654531 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 9 Jan 2013 06:09:56 +0000 Subject: [PATCH] - attempt to get mac build further --- source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c b/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c index fba3057a0..1fd0340bf 100644 --- a/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c +++ b/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c @@ -25,6 +25,12 @@ #include #include #include + +#if defined(__APPLE__) +#include +#include +#endif + #include #if defined(__FreeBSD__) @@ -203,7 +209,7 @@ int ftpSend(socket_t s, const void *data, int len) do { -#ifdef __APPLE__ +#if defined(__APPLE__) && defined(SO_NOSIGPIPE) currLen = send(s, data, len, SO_NOSIGPIPE); #else currLen = send(s, data, len, MSG_NOSIGNAL);