From 46a8e289833296cc340f7bfc2479ffa6e6424681 Mon Sep 17 00:00:00 2001 From: caro Date: Fri, 17 Jun 2011 21:49:47 +0000 Subject: [PATCH] Ecore : ecore_evas : use correct temporary directory on Windows git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@60468 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_evas/ecore_evas.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_evas/ecore_evas.c b/src/lib/ecore_evas/ecore_evas.c index a5f2827..f5e65ec 100644 --- a/src/lib/ecore_evas/ecore_evas.c +++ b/src/lib/ecore_evas/ecore_evas.c @@ -10,6 +10,10 @@ # include #endif +#ifdef HAVE_EVIL +# include +#endif + #include "Ecore.h" #include "ecore_private.h" #include "Ecore_Input.h" @@ -2715,10 +2719,17 @@ void _ecore_evas_fps_debug_init(void) { char buf[4096]; + const char *tmp; _ecore_evas_fps_debug_init_count++; if (_ecore_evas_fps_debug_init_count > 1) return; - snprintf(buf, sizeof(buf), "/tmp/.ecore_evas_fps_debug-%i", (int)getpid()); + +#ifndef HAVE_EVIL + tmp = "/tmp"; +#else + tmp = evil_tmpdir_get (); +#endif /* HAVE_EVIL */ + snprintf(buf, sizeof(buf), "%s/.ecore_evas_fps_debug-%i", tmp, (int)getpid()); _ecore_evas_fps_debug_fd = open(buf, O_CREAT | O_TRUNC | O_RDWR, 0644); if (_ecore_evas_fps_debug_fd < 0) { -- 2.7.4