summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorKarsten Blees <blees@dcon.de>2011-01-07 17:38:25 +0100
committerJunio C Hamano <gitster@pobox.com>2014-06-09 15:10:53 -0700
commitb0601e6564061aa21699ee0a523e969c228cb1b4 (patch)
tree0311173e20c4a39d1fc181a5b203e25256ac077c /compat
parent1d94c403fd52eddd2c4d6c0123f64c56a79bfca7 (diff)
downloadgit-b0601e6564061aa21699ee0a523e969c228cb1b4.tar.gz
Win32 dirent: remove unused dirent.d_reclen member
Remove the union around dirent.d_type and the unused dirent.d_reclen member (which was necessary for compatibility with the MinGW dirent runtime, which is no longer used). Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Stepan Kasal <kasal@ucw.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/win32/dirent.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/compat/win32/dirent.h b/compat/win32/dirent.h
index b38973b051..7f4e6c71d9 100644
--- a/compat/win32/dirent.h
+++ b/compat/win32/dirent.h
@@ -10,10 +10,7 @@ typedef struct DIR DIR;
struct dirent {
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 */
};
DIR *opendir(const char *dirname);