X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Finternal.h;h=59eca2ad34ed70a54ebc30aadb05c17b87a62e8f;hb=d973ebcca85078aeb8d6f790795b75c8a8b863b8;hp=789f3634a209e1e9601e267c3082a1b45e4175d7;hpb=63561f9937d11b1371a2de2511b903035818b42f;p=catta diff --git a/src/internal.h b/src/internal.h index 789f363..59eca2a 100644 --- a/src/internal.h +++ b/src/internal.h @@ -50,8 +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; @@ -62,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; };