Win32 dirent: remove unused dirent.d_ino member
There are no proper inodes on Windows, so remove dirent.d_ino and #define NO_D_INO_IN_DIRENT in the Makefile (this skips e.g. an ineffective qsort in fsck.c). 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>
Karsten Blees committed
Jan 7, 2011 at 17:34 UTC
1d94c403fd52eddd2c4d6c0123f64c56a79bfca7
2 files changed
+2
-1
compat/win32/dirent.h
-1
@@ -9,7 +9,6 @@ typedef struct DIR DIR;
9
#define DT_LNK 3
10
11
struct dirent {
12
- long d_ino; /* Always zero. */
12
char d_name[FILENAME_MAX]; /* File name. */
13
union {
14
unsigned short d_reclen; /* Always zero. */
config.mak.uname
+2
@@ -349,6 +349,7 @@ ifeq ($(uname_S),Windows)
349
NO_POSIX_GOODIES = UnfortunatelyYes
350
NATIVE_CRLF = YesPlease
351
DEFAULT_HELP_FORMAT = html
352
+ NO_D_INO_IN_DIRENT = YesPlease
353
354
CC = compat/vcbuild/scripts/clink.pl
355
AR = compat/vcbuild/scripts/lib.pl
@@ -497,6 +498,7 @@ ifneq (,$(findstring MINGW,$(uname_S)))
498
NO_INET_NTOP = YesPlease
499
NO_POSIX_GOODIES = UnfortunatelyYes
500
DEFAULT_HELP_FORMAT = html
501
+ NO_D_INO_IN_DIRENT = YesPlease
502
COMPAT_CFLAGS += -D__USE_MINGW_ACCESS -D_USE_32BIT_TIME_T -DNOGDI -Icompat -Icompat/win32
503
COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
504
COMPAT_OBJS += compat/mingw.o compat/winansi.o \