]> git.meshlink.io Git - catta/blobdiff - src/internal.h
Fix compilation error caused by ACX_THREAD
[catta] / src / internal.h
index b74ce25d3418e2c2a86189554a20b161e07c79a2..59eca2ad34ed70a54ebc30aadb05c17b87a62e8f 100644 (file)
@@ -50,6 +50,12 @@ typedef struct CattaEntry CattaEntry;
 
 #ifndef _WIN32
 #define closesocket close
+#define closepipe close
+#define writepipe write
+#define readpipe read
+#define winsock_init()
+#define winsock_exit()
+#define errnostrsocket() strerror(errno)
 #endif
 
 typedef struct CattaLegacyUnicastReflectSlot CattaLegacyUnicastReflectSlot;
@@ -60,7 +66,7 @@ struct CattaLegacyUnicastReflectSlot {
     uint16_t id, original_id;
     CattaAddress address;
     uint16_t port;
-    int iface;
+    CattaIfIndex iface;
     struct timeval elapse_time;
     CattaTimeEvent *time_event;
 };