Changeset 334
- Timestamp:
- 05/02/08 17:30:34 (2 months ago)
- Files:
-
- trunk/ircp/dirtraverse.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ircp/dirtraverse.c
r316 r334 9 9 #include <sys/types.h> 10 10 11 #if ndef _WIN3211 #if ! defined(_WIN32) 12 12 #include <dirent.h> 13 13 #include <sys/param.h> … … 25 25 int visit_dir(char *path, visit_cb cb, void *userdata) 26 26 { 27 #ifdef _MSC_VER 28 /** TODO */ 29 return -1; 30 #else 27 #if ! defined(_WIN32) 31 28 struct stat statbuf; 32 29 DIR *dir; … … 48 45 else { 49 46 snprintf(t, MAXPATHLEN, "%s/%s", path, dirent->d_name); 50 #ifdef _WIN3251 #warning "Do not use symbolic links in Windows Vista or fix this."52 if (stat(t, &statbuf) < 0) {53 #else54 47 if(lstat(t, &statbuf) < 0) { 55 #endif56 48 return -1; 57 49 } … … 84 76 out: 85 77 return ret; 78 79 #else 80 /** TODO */ 81 return -1; 86 82 #endif 87 83 }
