From 6eb54bb67ac203e672664e5a869fef38ed6bd3f5 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 8 Sep 2017 02:17:44 -0700 Subject: [PATCH] ircd::buffer: Add extern linkage for null buffers. --- ircd/socket.cc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ircd/socket.cc b/ircd/socket.cc index bea58fb40..1a1e956c5 100644 --- a/ircd/socket.cc +++ b/ircd/socket.cc @@ -22,6 +22,27 @@ #include #include +/////////////////////////////////////////////////////////////////////////////// +// +// buffer.h - provide definition for the null buffers +// + +const ircd::buffer::mutable_buffer +ircd::buffer::null_buffer +{ + nullptr, nullptr +}; + +const ircd::buffer::mutable_buffers +ircd::buffer::null_buffers +{{ + null_buffer +}}; + +/////////////////////////////////////////////////////////////////////////////// +// +// + namespace ircd { ip::tcp::resolver *resolver;