]> git.meshlink.io Git - catta/blobdiff - src/internal.h
wrap lifetimes of CattaServer and CattaSimplePoll in WSAStartup/WSACleanup
[catta] / src / internal.h
index 6c602d7deb3deb33eeaa41f27a3981d76800b893..789f3634a209e1e9601e267c3082a1b45e4175d7 100644 (file)
@@ -48,6 +48,12 @@ 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()
+#endif
+
 typedef struct CattaLegacyUnicastReflectSlot CattaLegacyUnicastReflectSlot;
 
 struct CattaLegacyUnicastReflectSlot {