Eina: Fix build on Solaris 10
authorVincent Torri <vincent.torri@gmail.com>
Sat, 10 Nov 2012 08:35:11 +0000 (08:35 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sat, 10 Nov 2012 08:35:11 +0000 (08:35 +0000)
Patch by Robert David

SVN revision: 79085

ChangeLog
src/lib/eina/eina_file.c

index 8f59a23..af4fdcf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,3 +61,7 @@
 2012-11-09  Vincent Torri
 
        * Fixed longstanding memset bug in evas box.
+
+2012-11-10  Vincent Torri
+
+        * Fix build of eina_file on Solaris 10
index 634f9ec..1c0253b 100644 (file)
@@ -1438,14 +1438,14 @@ EAPI int
 eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st)
 {
    struct stat buf;
-#ifdef HAVE_FSTATAT
+#if defined(HAVE_FSTATAT) && defined(HAVE_DIRFD)
    int fd;
 #endif
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(info, -1);
    EINA_SAFETY_ON_NULL_RETURN_VAL(st, -1);
 
-#ifdef HAVE_FSTATAT
+#if defined(HAVE_FSTATAT) && defined(HAVE_DIRFD)
    fd = dirfd((DIR*) container);
    if (fstatat(fd, info->path + info->name_start, &buf, 0))
 #else