summaryrefslogtreecommitdiff
path: root/setup_once.h
diff options
context:
space:
mode:
Diffstat (limited to 'setup_once.h')
-rw-r--r--setup_once.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/setup_once.h b/setup_once.h
index de6c632..f7d45a2 100644
--- a/setup_once.h
+++ b/setup_once.h
@@ -223,6 +223,19 @@ struct timeval {
/*
+ * Function-like macro definition used to close a socket.
+ */
+
+#if defined(HAVE_CLOSESOCKET)
+# define sclose(x) closesocket((x))
+#elif defined(HAVE_CLOSESOCKET_CAMEL)
+# define sclose(x) CloseSocket((x))
+#else
+# define sclose(x) close((x))
+#endif
+
+
+/*
* Uppercase macro versions of ANSI/ISO is*() functions/macros which
* avoid negative number inputs with argument byte codes > 127.
*/