$OpenBSD$

Index: lib/flb_libco/settings.h
--- lib/flb_libco/settings.h.orig
+++ lib/flb_libco/settings.h
@@ -8,7 +8,7 @@
  * Testing Fluent Bit on Windows when doing co_swap it crash if the
  * option LIBCO_MPROTECT is not defined.
  */
-#ifdef _WIN32
+#if defined(__OpenBSD__) || defined(__WIN32)
 #define LIBCO_MPROTECT
 #endif
 
