VirtualBox

Changeset 100837 in vbox


Ignore:
Timestamp:
Aug 9, 2023 3:08:16 PM (18 months ago)
Author:
vboxsync
Message:

include/iprt/x86.h: A small Solaris-specific build warning remediation.
Undefine MSR_AMD_VIRT_SPEC_CTL to avoid warnings about
'"MSR_AMD_VIRT_SPEC_CTL" redefined' when compiling SUPLib.cpp and
SUPLibLdr.cpp. Both of these files include <iprt/alloca.h> which
includes <stdlib.h> which pulls in numerous other header files before
penultimately including <sys/privregs.h> which ultimately pulls in
<sys/controlregs.h> which has its own definition of MSR_AMD_VIRT_SPEC_CTL
as of S11.4 SRU60/st_147.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/x86.h

    r99556 r100837  
    5050
    5151/** Workaround for Solaris sys/regset.h defining CS, DS and sys/controlregs.h
    52  * defining MSR_IA32_FLUSH_CMD */
     52 * defining MSR_IA32_FLUSH_CMD and MSR_AMD_VIRT_SPEC_CTL */
    5353#ifdef RT_OS_SOLARIS
    5454# undef CS
    5555# undef DS
    5656# undef MSR_IA32_FLUSH_CMD
     57# undef MSR_AMD_VIRT_SPEC_CTL
    5758#endif
    5859
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette