VirtualBox

Changeset 68579 in vbox


Ignore:
Timestamp:
Aug 31, 2017 12:11:06 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
117796
Message:

merging vbglioc r117757: Build fixes for FreeBSD 10.3.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r68576 r68579  
    327327} VBGLIOCDRIVERVERSIONINFO, RT_FAR *PVBGLIOCDRIVERVERSIONINFO;
    328328AssertCompileSize(VBGLIOCDRIVERVERSIONINFO, 24 + 20);
    329 #ifndef RT_OS_OS2 /* figure this one out... */
     329#ifndef __GNUC__ /* Some GCC versions can't handle the complicated RT_UOFFSET_AFTER macro, it seems. */
    330330AssertCompile(VBGL_IOCTL_DRIVER_VERSION_INFO_SIZE_IN == 24 + 16);
    331331#endif
     
    404404} VBGLIOCHGCMCONNECT, RT_FAR *PVBGLIOCHGCMCONNECT;
    405405AssertCompileSize(VBGLIOCHGCMCONNECT, 24 + 132);
    406 #ifndef RT_OS_OS2 /* figure this one out... */
     406#ifndef __GNUC__ /* Some GCC versions can't handle the complicated RT_UOFFSET_AFTER macro, it seems. */
    407407AssertCompile(VBGL_IOCTL_HGCM_CONNECT_SIZE_OUT == 24 + 4);
    408408#endif
     
    10431043} VBGLIOCIDCCONNECT, RT_FAR *PVBGLIOCIDCCONNECT;
    10441044AssertCompileSize(VBGLIOCIDCCONNECT, 24 + 16 + (ARCH_BITS == 64 ? 8 : 4) * 2);
    1045 #ifndef RT_OS_OS2 /* figure this one out... */
     1045#ifndef __GNUC__ /* Some GCC versions can't handle the complicated RT_UOFFSET_AFTER macro, it seems. */
    10461046AssertCompile(VBGL_IOCTL_IDC_CONNECT_SIZE_IN == 24 + 16);
    10471047#endif
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r68561 r68579  
    429429    if (g_File != NIL_RTFILE)
    430430    {
    431         if (RT_LIKELY(ioctl((int)g_File, uFunction, pHdr) >= 0))
     431        if (RT_LIKELY(ioctl((int)(intptr_t)g_File, uFunction, pHdr) >= 0))
    432432            return VINF_SUCCESS;
    433433        return RTErrConvertFromErrno(errno);
Note: See TracChangeset for help on using the changeset viewer.

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