X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Finternal.h;h=d38c1a317de0753cc366be30cf8143cd8ca91eb8;hb=4ac8d5e93bf09c86e8352cdc2099b35ec89ba3a9;hp=6c602d7deb3deb33eeaa41f27a3981d76800b893;hpb=d80c70d36363762e0cf1534e654e122d741fbc5d;p=catta diff --git a/src/internal.h b/src/internal.h index 6c602d7..d38c1a3 100644 --- a/src/internal.h +++ b/src/internal.h @@ -48,6 +48,13 @@ typedef struct CattaEntry CattaEntry; #define CATTA_RR_HOLDOFF_MSEC_RATE_LIMIT 20000 #define CATTA_RR_RATE_LIMIT_COUNT 15 +#ifndef _WIN32 +#define closesocket close +#define winsock_init() +#define winsock_exit() +#define errnostrsocket() strerror(errno) +#endif + typedef struct CattaLegacyUnicastReflectSlot CattaLegacyUnicastReflectSlot; struct CattaLegacyUnicastReflectSlot {