From: JINMEI Tatuya Date: Tue, 16 Jul 2024 12:15:03 +0000 (+0900) Subject: add a trivial wrapper for uv_stream_get_write_queue_size X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aca98dfaa510b0be1c4500a7e060ff4707f14c78;p=thirdparty%2Fbind9.git add a trivial wrapper for uv_stream_get_write_queue_size (cherry picked from commit b9bef2cc89082694a33536938515d59c430e52a7) --- diff --git a/lib/isc/netmgr/uv-compat.h b/lib/isc/netmgr/uv-compat.h index eea874477a4..f0a0d2de008 100644 --- a/lib/isc/netmgr/uv-compat.h +++ b/lib/isc/netmgr/uv-compat.h @@ -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) */