curl_setup_once.h: definition of HAVE_CLOSE_S defines sclose() to close_s()
authorGisle Vanem <gvanem@broadpark.no>
Fri, 15 Feb 2013 01:27:10 +0000 (02:27 +0100)
committerYang Tse <yangsita@gmail.com>
Fri, 15 Feb 2013 01:36:20 +0000 (02:36 +0100)
setup_once.h

index 9473a80..25b144a 100644 (file)
@@ -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