Use S_ISLNK macro only if it is defined

Test Plan: compilation

Reviewers: stephenmhouston

Reviewed By: stephenmhouston

Differential Revision: https://phab.enlightenment.org/D9810
This commit is contained in:
Vincent Torri 2019-10-02 12:58:59 -05:00 committed by Stephen 'Okra' Houston
parent 849476fb75
commit 1099d4dda0
1 changed files with 2 additions and 0 deletions

View File

@ -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));