diff options
Diffstat (limited to 'lib/setup_once.h')
-rw-r--r-- | lib/setup_once.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/setup_once.h b/lib/setup_once.h index 4c4d3f599..9ad69e58d 100644 --- a/lib/setup_once.h +++ b/lib/setup_once.h @@ -230,6 +230,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. */ |