summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_file.c')
-rw-r--r--src/lib/eina/eina_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index 634f9ecc09..1c0253b8d7 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -1438,14 +1438,14 @@ EAPI int
1438eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st) 1438eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st)
1439{ 1439{
1440 struct stat buf; 1440 struct stat buf;
1441#ifdef HAVE_FSTATAT 1441#if defined(HAVE_FSTATAT) && defined(HAVE_DIRFD)
1442 int fd; 1442 int fd;
1443#endif 1443#endif
1444 1444
1445 EINA_SAFETY_ON_NULL_RETURN_VAL(info, -1); 1445 EINA_SAFETY_ON_NULL_RETURN_VAL(info, -1);
1446 EINA_SAFETY_ON_NULL_RETURN_VAL(st, -1); 1446 EINA_SAFETY_ON_NULL_RETURN_VAL(st, -1);
1447 1447
1448#ifdef HAVE_FSTATAT 1448#if defined(HAVE_FSTATAT) && defined(HAVE_DIRFD)
1449 fd = dirfd((DIR*) container); 1449 fd = dirfd((DIR*) container);
1450 if (fstatat(fd, info->path + info->name_start, &buf, 0)) 1450 if (fstatat(fd, info->path + info->name_start, &buf, 0))
1451#else 1451#else