aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2013-02-15 02:11:57 +0100
committerYang Tse <yangsita@gmail.com>2013-02-15 02:35:23 +0100
commit6106eeba16f45a6a2fccdfac2b9b64dcf12f2a20 (patch)
treebe2172e724eb702f3de9c91a4c3404c3124af50b
parent8481386513b8b182d1047da18215a8e6003f9d36 (diff)
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
-rw-r--r--lib/curl_setup_once.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/curl_setup_once.h b/lib/curl_setup_once.h
index 8c7f41ff8..6f3240ac9 100644
--- a/lib/curl_setup_once.h
+++ b/lib/curl_setup_once.h
@@ -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