VirtualBox

Changeset 33395 in vbox for trunk


Ignore:
Timestamp:
Oct 24, 2010 4:18:01 PM (14 years ago)
Author:
vboxsync
Message:

Additions/common: Some old OS/2 build fixes.

Location:
trunk/src/VBox/Additions/common
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk

    r32693 r33395  
    7979        win/VBoxGuest.rc
    8080  endif
    81   VBoxGuest2.cpp_DEFS    = VBOX_SVN_REV=$(VBOX_SVN_REV)
    82   VBoxGuest.cpp_DEFS     = VBOX_SVN_REV=$(VBOX_SVN_REV)
    8381  VBoxGuest_LIBS        += \
    8482        $(VBOX_LIB_VBGL_R0BASE) \
     
    114112  VBoxGuestLibOs2Hack_SOURCES = \
    115113        VBoxGuest-os2.cpp \
    116         VBoxGuest.cpp
     114        VBoxGuest.cpp \
     115        VBoxGuest2.cpp
    117116 endif # OS/2
     117 
     118 VBoxGuest2.cpp_DEFS    = VBOX_SVN_REV=$(VBOX_SVN_REV)
     119 VBoxGuest.cpp_DEFS     = VBOX_SVN_REV=$(VBOX_SVN_REV)
    118120
    119121 ifeq ($(KBUILD_TARGET),win)
  • trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp

    r33277 r33395  
    2828#ifndef RT_OS_WINDOWS
    2929# include <signal.h>
     30# ifdef RT_OS_OS2
     31#  define pthread_sigmask sigprocmask
     32# endif
    3033#endif
    3134#ifdef RT_OS_FREEBSD
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceClipboard-os2.cpp

    r28800 r33395  
    367367            {
    368368                size_t cbPM = strlen(pszLocale) + 1;
    369                 APIRET rc = DosAllocSharedMem(&pvPM, NULL, cbPM, OBJ_GIVEABLE | OBJ_GETTABLE | OBJ_TILE | PAG_READ | PAG_WRITE | PAG_COMMIT);
    370                 if (rc == NO_ERROR)
     369                APIRET orc = DosAllocSharedMem(&pvPM, NULL, cbPM, OBJ_GIVEABLE | OBJ_GETTABLE | OBJ_TILE | PAG_READ | PAG_WRITE | PAG_COMMIT);
     370                if (orc == NO_ERROR)
    371371                    memcpy(pvPM, pszLocale, cbPM);
    372372                else
    373373                {
    374                     VBoxServiceError("DosAllocSharedMem(,,%#x,,) -> %ld\n", cb + sizeof(CLIPHEADER), rc);
     374                    VBoxServiceError("DosAllocSharedMem(,,%#x,,) -> %ld\n", cb + sizeof(CLIPHEADER), orc);
    375375                    pvPM = NULL;
    376376                }
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r32771 r33395  
    3636# include <net/if.h>
    3737# include <unistd.h>
    38 # ifndef RT_OS_FREEBSD
    39 #  include <utmpx.h> /* @todo FreeBSD 9 should have this. */
     38# ifndef RT_OS_OS2
     39#  ifndef RT_OS_FREEBSD
     40#   include <utmpx.h> /* @todo FreeBSD 9 should have this. */
     41#  endif
    4042# endif
    4143# ifdef RT_OS_SOLARIS
     
    637639        }
    638640# else
     641#  ifndef RT_OS_OS2 /** @todo port this to OS/2 */
    639642        if (ioctl(sd, SIOCGIFHWADDR, &ifrequest[i]) < 0)
    640643        {
     
    643646            break;
    644647        }
     648#  endif
    645649# endif
    646650
     651# ifndef RT_OS_OS2 /** @todo port this to OS/2 */
    647652        char szMac[32];
    648 # if defined(RT_OS_SOLARIS)
     653#  if defined(RT_OS_SOLARIS)
    649654        uint8_t *pu8Mac = IfMac.au8;
    650 # else
     655#  else
    651656        uint8_t *pu8Mac = (uint8_t*)&ifrequest[i].ifr_hwaddr.sa_data[0];        /* @todo see above */
    652 # endif
     657#  endif
    653658        RTStrPrintf(szMac, sizeof(szMac), "%02X%02X%02X%02X%02X%02X",
    654659                    pu8Mac[0], pu8Mac[1], pu8Mac[2], pu8Mac[3],  pu8Mac[4], pu8Mac[5]);
    655660        RTStrPrintf(szPropPath, sizeof(szPropPath), "/VirtualBox/GuestInfo/Net/%u/MAC", cIfacesReport);
    656661        VBoxServicePropCacheUpdate(&g_VMInfoPropCache, szPropPath, "%s", szMac);
     662# endif /* !OS/2*/
    657663
    658664        RTStrPrintf(szPropPath, sizeof(szPropPath), "/VirtualBox/GuestInfo/Net/%u/Status", cIfacesReport);
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