Ecore : ecore_evas : use correct temporary directory on Windows

SVN revision: 60468
This commit is contained in:
Vincent Torri 2011-06-17 21:49:47 +00:00
parent e91c5a0787
commit 3914920d09
1 changed files with 12 additions and 1 deletions

View File

@ -10,6 +10,10 @@
# include <unistd.h>
#endif
#ifdef HAVE_EVIL
# include <Evil.h>
#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)
{