diff options
Diffstat (limited to 'emulators/virtualbox-ose-legacy/files/patch-include-iprt-x86.h')
-rw-r--r-- | emulators/virtualbox-ose-legacy/files/patch-include-iprt-x86.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose-legacy/files/patch-include-iprt-x86.h b/emulators/virtualbox-ose-legacy/files/patch-include-iprt-x86.h new file mode 100644 index 000000000000..9a1001296bc9 --- /dev/null +++ b/emulators/virtualbox-ose-legacy/files/patch-include-iprt-x86.h @@ -0,0 +1,19 @@ +--- include/iprt/x86.h.orig 2020-05-13 19:36:52 UTC ++++ include/iprt/x86.h +@@ -35,6 +35,16 @@ + # pragma D depends_on library vbox-types.d + #endif + ++/* Workaround for FreeBSD machine/specialreg.h defining MSRs */ ++#ifdef RT_OS_FREEBSD ++# undef MSR_P5_MC_ADDR ++# undef MSR_P5_MC_TYPE ++# undef MSR_IA32_PLATFORM_ID ++# undef MSR_BBL_CR_CTL3 ++# undef MSR_IA32_MISC_ENABLE ++# undef MSR_IA32_FEATURE_CONTROL ++#endif ++ + /* Workaround for Solaris sys/regset.h defining CS, DS */ + #ifdef RT_OS_SOLARIS + # undef CS |