Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] compat: missing dirent.d_type field
[gitweb.git]
/
show-files.c
diff --git
a/show-files.c
b/show-files.c
index d4061f83031447aa9ee8ad16544e7bc084908838..c63c7aa4b79d9c00c331068c6390058f8795e346 100644
(file)
--- a/
show-files.c
+++ b/
show-files.c
@@
-129,7
+129,7
@@
static void read_directory(const char *path, const char *base, int baselen)
len = strlen(de->d_name);
memcpy(fullname + baselen, de->d_name, len+1);
- switch (
de->d_type
) {
+ switch (
DTYPE(de)
) {
struct stat st;
default:
continue;