VirtualBox

Ignore:
Timestamp:
Jul 26, 2007 4:26:39 PM (17 years ago)
Author:
vboxsync
Message:

Solaris.

File:
1 edited

Legend:

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

    r2981 r3888  
    4444#include "internal/path.h"
    4545
     46#if !defined(RT_OS_SOLARIS)
     47# define HAVE_DIRENT_D_TYPE 1
     48#endif
     49
    4650
    4751RTDECL(bool) RTDirExists(const char *pszPath)
     
    225229
    226230
     231#ifdef HAVE_DIRENT_D_TYPE
    227232/**
    228233 * Converts the d_type field to IPRT directory entry type.
     
    249254    }
    250255}
     256#endif /*HAVE_DIRENT_D_TYPE */
    251257
    252258
     
    295301             */
    296302            pDirEntry->INodeId = pDir->Data.d_ino; /* may need #ifdefing later */
     303#ifdef HAVE_DIRENT_D_TYPE
    297304            pDirEntry->enmType = rtDirType(pDir->Data.d_type);
     305#else
     306            pDirEntry->enmType = RTDIRENTRYTYPE_UNKNOWN;
     307#endif
    298308            pDirEntry->cbName  = (uint16_t)cchName;
    299309            Assert(pDirEntry->cbName == cchName);
     
    416426            if (RT_FAILURE(rc))
    417427            {
     428#ifdef HAVE_DIRENT_D_TYPE
    418429                rtDirSetDummyInfo(&pDirEntry->Info, rtDirType(pDir->Data.d_type));
     430#else
     431                rtDirSetDummyInfo(&pDirEntry->Info, RTDIRENTRYTYPE_UNKNOWN);
     432#endif
    419433                rc = VWRN_NO_DIRENT_INFO;
    420434            }
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