summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2013-02-15 01:27:10 (GMT)
committerYang Tse <yangsita@gmail.com>2013-02-15 01:36:20 (GMT)
commit8d013420a0b84cf0ffb7d7cd507f0cf83eff61a4 (patch)
treea83a5ff9a0db309449d138ba31785b51bd3f1d79
parentc28e6d98db6d961fde8d85dc75fdd44f0d1db06e (diff)
downloadc-ares-8d013420a0b84cf0ffb7d7cd507f0cf83eff61a4.zip
c-ares-8d013420a0b84cf0ffb7d7cd507f0cf83eff61a4.tar.gz
c-ares-8d013420a0b84cf0ffb7d7cd507f0cf83eff61a4.tar.bz2
curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
-rw-r--r--setup_once.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup_once.h b/setup_once.h
index 9473a80..25b144a 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -2,7 +2,7 @@
#define __SETUP_ONCE_H
-/* Copyright (C) 2004 - 2012 by Daniel Stenberg et al
+/* Copyright (C) 2004 - 2013 by Daniel Stenberg et al
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
@@ -260,6 +260,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))
#else
# define sclose(x) close((x))
#endif