VirtualBox

Changeset 24585 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Nov 11, 2009 3:07:03 PM (15 years ago)
Author:
vboxsync
Message:

fileio-posix.cpp: Build fix.

File:
1 edited

Legend:

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

    r24584 r24585  
    230230#endif
    231231            )
    232             iErr = fcntl(fh, F_SETFD, FD_CLOEXEC) < 0 ? errno : 0;
     232            iErr = fcntl(fh, F_SETFD, FD_CLOEXEC) >= 0 ? 0 : errno;
    233233
    234234        /*
     
    240240        {
    241241# if defined(RT_OS_DARWIN)
    242             iErr = fcntl(fh, F_NOCACHE, 1)   >= 0 : errno;
     242            iErr = fcntl(fh, F_NOCACHE, 1)        >= 0 ? 0 : errno;
    243243# else
    244             iErr = directio(fh, DIRECTIO_ON) >= 0 : errno;
     244            iErr = directio(fh, DIRECTIO_ON)      >= 0 ? 0 : errno;
    245245# endif
    246246        }
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