From 0b2eb51fc38f8862ec58ae875482edc507b67cf0 Mon Sep 17 00:00:00 2001 From: cedric Date: Tue, 23 Dec 2008 13:33:11 +0000 Subject: [PATCH] Make it compile on Solaris. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@38290 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_file.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/eina_file.c b/src/lib/eina_file.c index 669b738..cd1f2e6 100644 --- a/src/lib/eina_file.c +++ b/src/lib/eina_file.c @@ -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); } -- 2.7.4