diff --git a/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c b/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c index 1fd0340b..c1b48318 100644 --- a/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c +++ b/source/shared_lib/sources/feathery_ftp/ftpTargetPosix.c @@ -211,8 +211,10 @@ int ftpSend(socket_t s, const void *data, int len) { #if defined(__APPLE__) && defined(SO_NOSIGPIPE) currLen = send(s, data, len, SO_NOSIGPIPE); -#else +#elif defined(MSG_NOSIGNAL) currLen = send(s, data, len, MSG_NOSIGNAL); +#else + currLen = send(s, data, len, 0); #endif if(currLen >= 0)