summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-11-10 08:35:11 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-11-10 08:35:11 +0000
commit650d3d723c9d56b310752132cdfa0615661f3fd2 (patch)
tree449800ab3f268ef4330c3066cc966da340817369
parent2c93e58673e91fe026aa923f7c1386305c58bbf6 (diff)
Eina: Fix build on Solaris 10
Patch by Robert David SVN revision: 79085
-rw-r--r--ChangeLog4
-rw-r--r--src/lib/eina/eina_file.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f59a23cfe..af4fdcfa6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,3 +61,7 @@
612012-11-09 Vincent Torri 612012-11-09 Vincent Torri
62 62
63 * Fixed longstanding memset bug in evas box. 63 * Fixed longstanding memset bug in evas box.
64
652012-11-10 Vincent Torri
66
67 * Fix build of eina_file on Solaris 10
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