VirtualBox

Changeset 62947 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Aug 4, 2016 3:13:51 AM (8 years ago)
Author:
vboxsync
Message:

IPRT: Use O_DIRECT and S_ISCHR on NetBSD too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/fileio-posix.cpp

    r62477 r62947  
    155155        fOpenMode |= O_DIRECT;
    156156#endif
    157 #if defined(O_DIRECT) && (defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD))
     157#if defined(O_DIRECT) && (defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD))
    158158    /* Disable the kernel cache. */
    159159    if (fOpen & RTFILE_O_NO_CACHE)
     
    560560#if defined(RT_OS_SOLARIS)
    561561            || (!S_ISBLK(st.st_mode) && !S_ISCHR(st.st_mode))
    562 #elif defined(RT_OS_FREEBSD)
     562#elif defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
    563563            || !S_ISCHR(st.st_mode)
    564564#else
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