$OpenBSD: patch-include_libtorrent_buffer_hpp,v 1.1 2020/02/06 20:00:16 rsadowski Exp $

malloc_usable_size and malloc_size are unavailable

Index: include/libtorrent/buffer.hpp
--- include/libtorrent/buffer.hpp.orig
+++ include/libtorrent/buffer.hpp
@@ -50,7 +50,7 @@ POSSIBILITY OF SUCH DAMAGE.
 #elif defined __FreeBSD__
 #include <malloc_np.h>
 #elif defined TORRENT_BSD
-#include <malloc/malloc.h>
+#include <sys/malloc.h>
 #endif
 
 namespace libtorrent {
@@ -89,8 +89,6 @@ class buffer (public)
 		m_size = static_cast<difference_type>(::malloc_usable_size(m_begin));
 #elif defined _MSC_VER
 		m_size = static_cast<difference_type>(::_msize(m_begin));
-#elif defined TORRENT_BSD
-		m_size = static_cast<difference_type>(::malloc_size(m_begin));
 #else
 		m_size = size;
 #endif
