From c77466075a588d0b6c2c281cf83e72f6b3e311e5 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 13 Mar 2014 18:40:16 +0000 Subject: Work around build problems on recent stable/9. --- .../files/patch-include-iprt-x86.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 emulators/virtualbox-ose-kmod-legacy/files/patch-include-iprt-x86.h (limited to 'emulators/virtualbox-ose-kmod-legacy') diff --git a/emulators/virtualbox-ose-kmod-legacy/files/patch-include-iprt-x86.h b/emulators/virtualbox-ose-kmod-legacy/files/patch-include-iprt-x86.h new file mode 100644 index 000000000000..53b7a7a34524 --- /dev/null +++ b/emulators/virtualbox-ose-kmod-legacy/files/patch-include-iprt-x86.h @@ -0,0 +1,15 @@ +--- include/iprt/x86.h.orig 2014-01-11 03:15:24.000000000 -0500 ++++ include/iprt/x86.h 2014-03-13 14:13:50.000000000 -0400 +@@ -35,6 +35,12 @@ + # pragma D depends_on library vbox-types.d + #endif + ++/* Workaround for FreeBSD machine/specialreg.h defining MSRs */ ++#ifdef RT_OS_FREEBSD ++# undef MSR_IA32_PLATFORM_ID ++# undef MSR_IA32_MISC_ENABLE ++#endif ++ + /* Workaround for Solaris sys/regset.h defining CS, DS */ + #ifdef RT_OS_SOLARIS + # undef CS -- cgit v1.2.3