VirtualBox

Changeset 93467 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 27, 2022 8:49:52 PM (3 years ago)
Author:
vboxsync
Message:

Additions: Guest Library: fix build for non-Linux platforms, bugref:10134.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDrmClient.cpp

    r93466 r93467  
    4444# define VBOX_DRMCLIENT_GUEST_PROP_RESIZE    "/VirtualBox/GuestAdd/DRMResize"
    4545
    46 #endif /* RT_OS_LINUX */
    47 
    4846/**
    4947 * Check if specified guest property exist.
     
    5755{
    5856    bool fExist = false;
    59 #if defined(RT_OS_LINUX) && defined(VBOX_WITH_GUEST_PROPS)
     57# if defined(VBOX_WITH_GUEST_PROPS)
    6058    uint32_t idClient;
    6159
     
    8482        VbglR3GuestPropDisconnect(idClient);
    8583    }
    86 #endif /* RT_OS_LINUX */
     84# endif /* VBOX_WITH_GUEST_PROPS */
    8785    return fExist;
    8886}
     87#endif /* RT_OS_LINUX */
    8988
    9089/**
     
    9695VBGLR3DECL(bool) VbglR3DrmClientIsNeeded(void)
    9796{
     97#if defined(RT_OS_LINUX)
    9898    return vbglR3DrmClientCheckProp(VBOX_DRMCLIENT_GUEST_PROP_RESIZE, 0);
     99#else
     100    return false;
     101#endif
    99102}
    100103
     
    114117VBGLR3DECL(bool) VbglR3DrmRestrictedIpcAccessIsNeeded(void)
    115118{
     119#if defined(RT_OS_LINUX)
    116120    return vbglR3DrmClientCheckProp(VBGLR3DRMIPCPROPRESTRICT, GUEST_PROP_F_RDONLYGUEST);
     121#else
     122    return false;
     123#endif
    117124}
    118125
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