]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add a trivial wrapper for uv_stream_get_write_queue_size
authorJINMEI Tatuya <jtatuya@infoblox.com>
Tue, 16 Jul 2024 12:15:03 +0000 (21:15 +0900)
committerOndřej Surý <ondrej@isc.org>
Mon, 5 Aug 2024 10:31:15 +0000 (10:31 +0000)
(cherry picked from commit b9bef2cc89082694a33536938515d59c430e52a7)

lib/isc/netmgr/uv-compat.h

index eea874477a4d6ed0d35d3a0403dd040cde64d622..f0a0d2de0088e468f083d429b534d2a7dc15b9c9 100644 (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) */