git: 45e930db73af - stable/13 - linux32: add a hack to avoid redefining the type of the savefpu tag

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 10 Oct 2021 09:24:07 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=45e930db73af952225d04722d83496c397d6450b

commit 45e930db73af952225d04722d83496c397d6450b
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-09-13 21:40:02 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-10 09:21:17 +0000

    linux32: add a hack to avoid redefining the type of the savefpu tag
    
    (cherry picked from commit 0f6829488ef32142b9ea1c0806fb5ecfe0872c02)
---
 sys/x86/include/fpu.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/x86/include/fpu.h b/sys/x86/include/fpu.h
index 313a03ea55c9..bb8533d599dd 100644
--- a/sys/x86/include/fpu.h
+++ b/sys/x86/include/fpu.h
@@ -123,10 +123,12 @@ struct savexmm {
 } __aligned(16);
 
 #ifdef __i386__
+#ifndef __M32_BROKEN_MODULE_HACK__
 union savefpu {
 	struct save87	sv_87;
 	struct savexmm	sv_xmm;
 };
+#endif /* __M32_BROKEN_MODULE_HACK__ */
 #else
 /* Floating point context. (amd64 fxsave/fxrstor) */
 struct savefpu {