Eina: Fix build on Solaris 10

Patch by Robert David


SVN revision: 79085
This commit is contained in:
Vincent Torri 2012-11-10 08:35:11 +00:00
parent 2c93e58673
commit 650d3d723c
2 changed files with 6 additions and 2 deletions

View File

@ -61,3 +61,7 @@
2012-11-09 Vincent Torri 2012-11-09 Vincent Torri
* Fixed longstanding memset bug in evas box. * Fixed longstanding memset bug in evas box.
2012-11-10 Vincent Torri
* Fix build of eina_file on Solaris 10

View File

@ -1438,14 +1438,14 @@ EAPI int
eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st) eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st)
{ {
struct stat buf; struct stat buf;
#ifdef HAVE_FSTATAT #if defined(HAVE_FSTATAT) && defined(HAVE_DIRFD)
int fd; int fd;
#endif #endif
EINA_SAFETY_ON_NULL_RETURN_VAL(info, -1); EINA_SAFETY_ON_NULL_RETURN_VAL(info, -1);
EINA_SAFETY_ON_NULL_RETURN_VAL(st, -1); EINA_SAFETY_ON_NULL_RETURN_VAL(st, -1);
#ifdef HAVE_FSTATAT #if defined(HAVE_FSTATAT) && defined(HAVE_DIRFD)
fd = dirfd((DIR*) container); fd = dirfd((DIR*) container);
if (fstatat(fd, info->path + info->name_start, &buf, 0)) if (fstatat(fd, info->path + info->name_start, &buf, 0))
#else #else