]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/cpp/sf/sfcontrol.cpp
small fix pointed out by Axel Poigné: third parameter to accept should be of type...
[tinyos-2.x.git] / support / sdk / cpp / sf / sfcontrol.cpp
index 1920949d936306cc3c59e94bdb2c039c898404a5..4cfeac4bf2ca9cd9ac5fb3455fc434487a1de338 100644 (file)
@@ -452,7 +452,11 @@ bool SFControl::sendToClient(string message)
     const char* buffer = message.c_str();
     while (length > 0)
     {
+#ifdef __APPLE__
+        int n = send(clientFD, buffer, length, 0);
+#else
         int n = send(clientFD, buffer, length, MSG_NOSIGNAL);
+#endif
         if (!(n > 0))
         {
             return false;
@@ -491,7 +495,7 @@ void SFControl::waitOnInput()
     bool clientConnected = false;
 
     struct sockaddr_in client;
-    unsigned int clientAddrLen = sizeof(client);
+    socklen_t clientAddrLen = sizeof(client);
     FD_ZERO(&rfds);
 
     while (true)