Check if mkstemps exists

"Fixes" #1533

SVN revision: 77035
This commit is contained in:
Sebastian Dransfeld 2012-09-24 12:18:52 +00:00
parent d017df5ccf
commit 1268f27d81
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,8 @@ requirements="\
PKG_CHECK_MODULES([TERMINOLOGY], [${requirements}])
AC_CHECK_FUNCS(mkstemps)
EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
with_max_log_level="EINA_LOG_LEVEL_ERR"

View File

@ -860,6 +860,7 @@ media_add(Evas_Object *parent, const char *src, const Config *config, int mode,
sd->mode = mode;
sd->tmpfd = -1;
#if HAVE_MKSTEMPS
if (link_is_url(sd->src))
{
const char *ext = NULL;
@ -936,6 +937,7 @@ media_add(Evas_Object *parent, const char *src, const Config *config, int mode,
}
}
}
#endif
if (!sd->url) sd->realf = eina_stringshare_add(sd->src);