Update for mingw compile.
[awesomized/libmemcached] / libmemcached / connect.cc
index d6dca966140cf787d1e6529bb458e44aaed5754f..d2580b5ef82879a349d212c2e0f160932b9c7317 100644 (file)
@@ -357,6 +357,8 @@ static bool set_socket_options(org::libmemcached::Instance* server)
 #endif
 
 
+#if defined(_WIN32)
+#else
 #if defined(SO_NOSIGPIPE)
   if (SO_NOSIGPIPE)
   {
@@ -373,7 +375,8 @@ static bool set_socket_options(org::libmemcached::Instance* server)
 #endif
     }
   }
-#endif
+#endif // SO_NOSIGPIPE
+#endif // _WIN32
 
   if (server->root->flags.no_block)
   {