Make it compile on Solaris.

SVN revision: 38290
This commit is contained in:
Cedric BAIL 2008-12-23 13:33:11 +00:00
parent 2c9ac0bd82
commit e006567cb0
1 changed files with 4 additions and 1 deletions

View File

@ -138,8 +138,9 @@ eina_file_dir_list(const char *dir, Eina_Bool recursive, Eina_File_Dir_List_Cb c
strcpy(path, dir);
strcat(path, "/");
strcat(path, de->d_name);
#ifndef sun
if (de->d_type == DT_UNKNOWN) {
#endif
struct stat st;
if (stat(path, &st))
@ -147,9 +148,11 @@ eina_file_dir_list(const char *dir, Eina_Bool recursive, Eina_File_Dir_List_Cb c
if (!S_ISDIR(st.st_mode))
continue ;
#ifndef sun
} else if (de->d_type != DT_DIR) {
continue ;
}
#endif
eina_file_dir_list(path, recursive, cb, data);
}