VirtualBox

Changeset 63338 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Aug 11, 2016 12:58:11 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109972
Message:
Additions/common: add a few
defined(RT_OS_NETBSD) in the common

code to treat NetBSD the same as FreeBSD.

From Haomai Wang GSoC project with additional changes by Arto Huusko.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r62679 r63338  
    4141   || defined(RT_OS_HAIKU) \
    4242   || defined(RT_OS_LINUX) \
     43   || defined(RT_OS_NETBSD) \
    4344   || defined(RT_OS_SOLARIS)
    4445# include <sys/types.h>
    4546# include <sys/stat.h>
    46 # if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) /** @todo check this on solaris+freebsd as well. */
     47# if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) || defined(RT_OS_NETBSD)
     48   /** @todo check this on solaris+freebsd as well. */
    4749#  include <sys/ioctl.h>
    4850# endif
     
    253255#else
    254256
    255     /* The default implementation. (linux, solaris, freebsd, haiku) */
     257    /* The default implementation. (linux, solaris, freebsd, netbsd, haiku) */
    256258    RTFILE File;
    257259    int rc = RTFileOpen(&File, pszDeviceName, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
     
    395397
    396398#else
    397 # if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD)
     399# if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
    398400    VBGLBIGREQ Hdr;
    399401    Hdr.u32Magic = VBGLBIGREQ_MAGIC;
     
    414416# endif
    415417
    416 # if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_DARWIN) || defined(RT_OS_LINUX)
     418# if defined(RT_OS_SOLARIS) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD) || defined(RT_OS_DARWIN) || defined(RT_OS_LINUX)
    417419#  ifdef VBOX_VBGLR3_XSERVER
    418420    int rc = xf86ioctl((int)g_File, iFunction, pvData);
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r62852 r63338  
    8282#  include <net/if_arp.h>
    8383# endif
    84 # if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
     84# if defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
    8585#  include <ifaddrs.h> /* getifaddrs, freeifaddrs */
    8686#  include <net/if_dl.h> /* LLADDR */
     
    10891089    return VERR_NOT_IMPLEMENTED;
    10901090
    1091 #elif defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD)
     1091#elif defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
    10921092    struct ifaddrs *pIfHead = NULL;
    10931093
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