Ephoto: Make Ephoto compile/work on Windows.

This commit is contained in:
Vincent Torri 2017-03-29 13:31:58 -05:00 committed by Stephen 'Okra' Houston
parent afa1529be3
commit 751e08acc7
2 changed files with 14 additions and 13 deletions

View File

@ -3,7 +3,7 @@ dnl Process this file with autoconf to produce a configure script.
# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT([ephoto], [1.0-beta2], [enlightenment-devel@lists.sourceforge.net])
AC_INIT([ephoto], [1.0-beta3], [enlightenment-devel@lists.sourceforge.net])
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([configure.ac])
@ -53,18 +53,15 @@ fi
AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
PKG_CHECK_MODULES([EFL], [
eina >= 1.18.0
evas >= 1.18.0
ecore >= 1.18.0
ecore-file >= 1.18.0
ecore-ipc >= 1.18.0
edje >= 1.18.0
eo >= 1.18.0
eio >= 1.18.0
elementary >= 1.18.0
efreet-mime >= 1.18.0
])
requirements="eina >= 1.18.0 evas >= 1.18.0 ecore >= 1.18.0 ecore-file >=
1.18.0 ecore-ipc >= 1.18.0 edje >= 1.18.0 eo >= 1.18.0 eio >= 1.18.0
elementary >= 1.18.0 efreet-mime >= 1.18.0"
if test "x${have_win32}" = "xyes" ; then
requirements="${requirements} evil"
fi
PKG_CHECK_MODULES([EFL], [${requirements}])
AC_CHECK_FUNCS([nice])

View File

@ -744,7 +744,11 @@ _delete_thread_cb(void *data, Ecore_Thread *et EINA_UNUSED)
int ret;
struct stat s;
#ifdef _WIN32
if (stat(file, &s))
#else
if (lstat(file, &s))
#endif
{
if (S_ISLNK(s.st_mode))
{