add a trivial wrapper for uv_stream_get_write_queue_size

(cherry picked from commit b9bef2cc89)
This commit is contained in:
JINMEI Tatuya
2024-08-05 10:31:15 +00:00
committed by Ondřej Surý
parent d420df5fa2
commit aca98dfaa5
+4
View File
@@ -124,3 +124,7 @@ isc_uv_udp_freebind(uv_udp_t *handle, const struct sockaddr *addr,
int
isc_uv_tcp_freebind(uv_tcp_t *handle, const struct sockaddr *addr,
unsigned int flags);
#if UV_VERSION_HEX < UV_VERSION(1, 19, 0)
#define uv_stream_get_write_queue_size(stream) ((stream)->write_queue_size)
#endif /* UV_VERSION_HEX < UV_VERSION(1, 19, 0) */