Changeset 3888 in vbox for trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
- Timestamp:
- Jul 26, 2007 4:26:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/dir-posix.cpp
r2981 r3888 44 44 #include "internal/path.h" 45 45 46 #if !defined(RT_OS_SOLARIS) 47 # define HAVE_DIRENT_D_TYPE 1 48 #endif 49 46 50 47 51 RTDECL(bool) RTDirExists(const char *pszPath) … … 225 229 226 230 231 #ifdef HAVE_DIRENT_D_TYPE 227 232 /** 228 233 * Converts the d_type field to IPRT directory entry type. … … 249 254 } 250 255 } 256 #endif /*HAVE_DIRENT_D_TYPE */ 251 257 252 258 … … 295 301 */ 296 302 pDirEntry->INodeId = pDir->Data.d_ino; /* may need #ifdefing later */ 303 #ifdef HAVE_DIRENT_D_TYPE 297 304 pDirEntry->enmType = rtDirType(pDir->Data.d_type); 305 #else 306 pDirEntry->enmType = RTDIRENTRYTYPE_UNKNOWN; 307 #endif 298 308 pDirEntry->cbName = (uint16_t)cchName; 299 309 Assert(pDirEntry->cbName == cchName); … … 416 426 if (RT_FAILURE(rc)) 417 427 { 428 #ifdef HAVE_DIRENT_D_TYPE 418 429 rtDirSetDummyInfo(&pDirEntry->Info, rtDirType(pDir->Data.d_type)); 430 #else 431 rtDirSetDummyInfo(&pDirEntry->Info, RTDIRENTRYTYPE_UNKNOWN); 432 #endif 419 433 rc = VWRN_NO_DIRENT_INFO; 420 434 }
Note:
See TracChangeset
for help on using the changeset viewer.