summaryrefslogtreecommitdiff
path: root/compat/win32/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/win32/dirent.h')
-rw-r--r--compat/win32/dirent.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/compat/win32/dirent.h b/compat/win32/dirent.h
index 927a25ca76..8838cd61fc 100644
--- a/compat/win32/dirent.h
+++ b/compat/win32/dirent.h
@@ -9,12 +9,8 @@ typedef struct DIR DIR;
#define DT_LNK 3
struct dirent {
- long d_ino; /* Always zero. */
- char d_name[FILENAME_MAX]; /* File name. */
- union {
- unsigned short d_reclen; /* Always zero. */
- unsigned char d_type; /* Reimplementation adds this */
- };
+ unsigned char d_type; /* file type to prevent lstat after readdir */
+ char d_name[MAX_PATH]; /* file name */
};
DIR *opendir(const char *dirname);