Make it compile on Solaris.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 23 Dec 2008 13:33:11 +0000 (13:33 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 23 Dec 2008 13:33:11 +0000 (13:33 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@38290 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_file.c

index 669b738..cd1f2e6 100644 (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);
                }