$OpenBSD: patch-mono_utils_mono-context_h,v 1.1 2018/03/19 15:12:20 robert Exp $

Index: mono/utils/mono-context.h
--- mono/utils/mono-context.h.orig
+++ mono/utils/mono-context.h
@@ -36,7 +36,7 @@ typedef struct _libc_xmmreg MonoContextSimdReg;
 typedef __m128d MonoContextSimdReg;
 #elif defined(HOST_ANDROID)
 typedef struct _libc_xmmreg MonoContextSimdReg;
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__OpenBSD__)
 #include <emmintrin.h>
 typedef __m128d MonoContextSimdReg;
 #endif
@@ -255,7 +255,7 @@ typedef struct {
 
 typedef struct {
 	mgreg_t gregs [AMD64_NREG];
-#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || defined(HOST_WIN32)
+#if defined(__APPLE__) || (defined(__linux__) && defined(__GLIBC__)) || defined(HOST_WIN32) || defined(__OpenBSD__)
 	MonoContextSimdReg fregs [AMD64_XMM_NREG];
 #else
 	double fregs [AMD64_XMM_NREG];
