diff --git a/include/uv.h b/include/uv.h index 334f43073..1f8c1cec1 100644 --- a/include/uv.h +++ b/include/uv.h @@ -528,7 +528,7 @@ int uv_exepath(char* buffer, size_t* size); extern uint64_t uv_hrtime(void); -/* the presence of this union forces similar struct layout */ +/* the presence of these unions force similar struct layout */ union uv_any_handle { uv_tcp_t tcp; uv_pipe_t pipe; @@ -540,6 +540,14 @@ union uv_any_handle { uv_getaddrinfo_t getaddrinfo; }; +union uv_any_req { + uv_req_t req; + uv_write_t write; + uv_connect_t connect; + uv_shutdown_t shutdown; +}; + + /* Diagnostic counters */ typedef struct { uint64_t req_init;