okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=1099d4dda0019a18b1d1ab1d49756d92ca34b5c1

commit 1099d4dda0019a18b1d1ab1d49756d92ca34b5c1
Author: Vincent Torri <[email protected]>
Date:   Wed Oct 2 12:58:59 2019 -0500

    Use S_ISLNK macro only if it is defined
    
    Test Plan: compilation
    
    Reviewers: stephenmhouston
    
    Reviewed By: stephenmhouston
    
    Differential Revision: https://phab.enlightenment.org/D9810
---
 src/bin/ephoto_file.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/ephoto_file.c b/src/bin/ephoto_file.c
index 2b7d027..7155295 100644
--- a/src/bin/ephoto_file.c
+++ b/src/bin/ephoto_file.c
@@ -968,11 +968,13 @@ _delete_thread_cb(void *data, Ecore_Thread *et 
EINA_UNUSED)
              if (lstat(file, &s) == 0)
 #endif
                {
+#ifdef S_ISLNK
                   if (S_ISLNK(s.st_mode))
                     {
                        ret = ecore_file_unlink(file);
                     }
                   else
+#endif
                     {
                        snprintf(fp, PATH_MAX, "%s", file);
                        snprintf(dest, PATH_MAX, "%s/%s", ephoto->trash_path, 
basename(fp));

-- 


Reply via email to