]> granicus.if.org Git - curl/commitdiff
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
authorGisle Vanem <gvanem@broadpark.no>
Fri, 15 Feb 2013 01:11:57 +0000 (02:11 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 15 Feb 2013 01:35:23 +0000 (02:35 +0100)
lib/curl_setup_once.h

index 8c7f41ff8795978616745ca29f181b7be7db1720..6f3240ac94a5c03007e7488917c6ee8df05304ec 100644 (file)
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -257,6 +257,8 @@ struct timeval {
 #  define sclose(x)  closesocket((x))
 #elif defined(HAVE_CLOSESOCKET_CAMEL)
 #  define sclose(x)  CloseSocket((x))
+#elif defined(HAVE_CLOSE_S)
+#  define sclose(x)  close_s((x))
 #elif defined(USE_LWIPSOCK)
 #  define sclose(x)  lwip_close((x))
 #else