raiserfs do not supports d_type

This commit is contained in:
p.kosyh@gmail.com 2009-02-22 08:14:09 +00:00
parent 1c6bb4779e
commit 6f6094c7f3
2 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
VERSION := \"0.7.3\"
VERSION := \"0.7.4\"
DESTDIR=/usr/local
BIN=$(DESTDIR)/bin

View file

@ -609,8 +609,8 @@ int games_lookup(void)
if (!d)
return -1;
while ((de = readdir(d))) {
if (de->d_type != DT_DIR)
continue;
/*if (de->d_type != DT_DIR)
continue;*/
if (!is_game(de->d_name))
continue;
n ++;
@ -620,8 +620,8 @@ int games_lookup(void)
return 0;
games = malloc(sizeof(struct game) * n);
while ((de = readdir(d)) && games_nr < n) {
if (de->d_type != DT_DIR)
continue;
/*if (de->d_type != DT_DIR)
continue;*/
if (!is_game(de->d_name))
continue;
p = getpath(GAMES_PATH, de->d_name);