diff options
Diffstat (limited to 'ares/setup_once.h')
-rw-r--r-- | ares/setup_once.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ares/setup_once.h b/ares/setup_once.h index de6c632be..f7d45a232 100644 --- a/ares/setup_once.h +++ b/ares/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. */ |