add a trivial wrapper for uv_stream_get_write_queue_size

(cherry picked from commit b9bef2cc89)
This commit is contained in:
JINMEI Tatuya 2024-07-16 21:15:03 +09:00 committed by Ondřej Surý
parent d420df5fa2
commit aca98dfaa5

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) */