X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Finternal.h;h=59eca2ad34ed70a54ebc30aadb05c17b87a62e8f;hb=HEAD;hp=b74ce25d3418e2c2a86189554a20b161e07c79a2;hpb=4fe2472f5302b74df5dbb43822711487f1fd9851;p=catta diff --git a/src/internal.h b/src/internal.h index b74ce25..59eca2a 100644 --- a/src/internal.h +++ b/src/internal.h @@ -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; };