Skip to content

Commit 198147a

Browse files
jonchamakoeplinger
authored andcommitted
Fix MonoContextSimdReg usage on non-glibc Linux amd64(mono#6007)
Include emmintrin.h and use __m128d for MonoContextSimdReg on Linux. Fixes breakage on Alpine Linux introduced in mono#5764
1 parent b25e550 commit 198147a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mono/utils/mono-context.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ typedef struct _libc_xmmreg MonoContextSimdReg;
3636
typedef __m128d MonoContextSimdReg;
3737
#elif defined(HOST_ANDROID)
3838
typedef struct _libc_xmmreg MonoContextSimdReg;
39+
#elif defined(__linux__)
40+
#include <emmintrin.h>
41+
typedef __m128d MonoContextSimdReg;
3942
#endif
4043
#elif defined(TARGET_ARM64)
4144
typedef __uint128_t MonoContextSimdReg;

0 commit comments

Comments
 (0)