VirtualBox

Changeset 9124 in vbox for trunk


Ignore:
Timestamp:
May 26, 2008 1:48:23 PM (17 years ago)
Author:
vboxsync
Message:

Cleanup of the Solaris 10 detection, reducing ifdef clutter in the C files and avoid using the system namespace.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r9113 r9124  
    14771477ifeq ($(KBUILD_TARGET),solaris)
    14781478 ifeq ($(origin SOLARIS_VER),undefined)
    1479    export SOLARIS_VER       := $(shell uname -s)_$(subst .,_,$(shell uname -r))
    1480  endif
    1481  DEFS.solaris += __$(SOLARIS_VER)
     1479  export SOLARIS_VER := $(shell uname -r | $(SED_EXT) 's|\([0-9]\)\.\([0-9]\)|$$(int-add $$(int-mul 100, \1), \2))
     1480  ifeq ($(SOLARIS_VER),510)
     1481   DEFS.solaris += RT_OS_SOLARIS_10
     1482   # Solaris 10 does not include crossbow.
     1483   VBOX_WITH_CROSSBOW =
     1484   VBOX_SOLARIS_10 = 1
     1485  endif
     1486  DEFS.solaris += SOLARIS_VER=$(SOLARIS_VER)
     1487 endif
    14821488endif
    14831489
  • trunk/src/VBox/Devices/Builtins.cpp

    r9113 r9124  
    203203        return rc;
    204204#endif
    205 #if defined(RT_OS_L4) || defined(RT_OS_LINUX) || defined(RT_OS_OS2) || (defined(RT_OS_SOLARIS) && !defined(__SunOS_5_10)) || defined(RT_OS_WINDOWS)
     205#if defined(RT_OS_L4) || defined(RT_OS_LINUX) || defined(RT_OS_OS2) || (defined(RT_OS_SOLARIS) && !defined(RT_OS_SOLARIS_10)) || defined(RT_OS_WINDOWS)
    206206    rc = pCallbacks->pfnRegister(pCallbacks, &g_DrvHostInterface);
    207207    if (VBOX_FAILURE(rc))
  • trunk/src/VBox/Devices/Makefile.kmk

    r8773 r9124  
    610610Drivers_SOURCES.solaris = \
    611611        Audio/solaudio.c \
    612         Network/DrvTAP.cpp \
     612        $(if $(VBOX_SOLARIS_10),,Network/DrvTAP.cpp) \
    613613        Storage/DrvHostBase.cpp \
    614614        Storage/DrvHostDVD.cpp
  • trunk/src/VBox/Devices/Network/DrvTAP.cpp

    r9113 r9124  
    1919 * additional information or have any questions.
    2020 */
    21 
    22 #if !defined(RT_OS_SOLARIS) || !defined(__SunOS_5_10)
    2321
    2422/*******************************************************************************
     
    10931091    NULL
    10941092};
    1095 
    1096 #endif /* !defined(RT_OS_SOLARIS) || !defined(__SunOS_5_10) */
  • trunk/src/VBox/Devices/Network/solaris/vbox-libdlpi.cpp

    r9114 r9124  
    1919 * additional information or have any questions.
    2020 */
    21 
    22 /* Solaris 10 and below has no dlpi. */
    23 #ifndef __SunOS_5_10
    2421
    2522#include "vbox-libdlpi.h"
     
    8582    }
    8683}
    87 
    88 #endif /* __SunOS_5_10 */
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