]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/cpp/sf/tcpcomm.cpp
try to circumvent Mac OS X problems
[tinyos-2.x.git] / support / sdk / cpp / sf / tcpcomm.cpp
index 40baa35fcf3d80f8b2afb2d01b59c51d280dd2c7..7e064993a4947eb9968747aa80981bc0dd241a5b 100644 (file)
@@ -158,7 +158,11 @@ int TCPComm::writeFD(int fd, const char *buffer, int count)
     int actual = 0;
     while (count > 0)
     {
+#ifdef __APPLE__
+        int n = send(fd, buffer, count, 0);
+#else
         int n = send(fd, buffer, count, MSG_NOSIGNAL);
+#endif
         if (n == -1)
         {
             return -1;