1
0
mirror of https://github.com/libuv/libuv synced 2025-03-28 21:13:16 +00:00

Un-break windows

This commit is contained in:
Bert Belder 2011-04-14 22:34:13 +02:00
parent 7ed7bb34b0
commit 9f746952cf

View File

@ -17,27 +17,25 @@ typedef struct oio_buf {
char* base;
} oio_buf;
struct oio_req_private_s {
union {
/* Used by I/O operations */
OVERLAPPED overlapped;
/* Used by timers */
struct {
RB_ENTRY(oio_req_s) tree_entry;
int64_t due;
};
};
#define oio_req_private_fields \
union { \
/* Used by I/O operations */ \
OVERLAPPED overlapped; \
/* Used by timers */ \
struct { \
RB_ENTRY(oio_req_s) tree_entry; \
int64_t due; \
}; \
}; \
int flags;
};
struct oio_handle_private_s {
union {
SOCKET socket;
HANDLE handle;
};
SOCKET accepted_socket;
struct oio_accept_req_s* accept_reqs;
unsigned int flags;
unsigned int reqs_pending;
#define oio_handle_private_fields \
union { \
SOCKET socket; \
HANDLE handle; \
}; \
SOCKET accepted_socket; \
struct oio_accept_req_s* accept_reqs; \
unsigned int flags; \
unsigned int reqs_pending; \
oio_err error;
};