$OpenBSD: patch-src_SWIG__bio_i,v 1.1 2021/07/24 20:02:04 sthen Exp $

LibreSSL doesn't have BIO_get_init()

Index: src/SWIG/_bio.i
--- src/SWIG/_bio.i.orig
+++ src/SWIG/_bio.i
@@ -330,6 +330,9 @@ BIO_meth_free( BIO_METHOD *meth )
 #define BIO_clear_flags(b, x)    b->flags &= ~(x)
 #define BIO_get_data(b)    b->ptr
 #endif
+#if defined(LIBRESSL_VERSION_NUMBER)
+#define BIO_get_init(b)    (b)->init
+#endif
 
 /* implment custom BIO_s_pyfd */
 
