summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/extn
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 22:06:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-01-08 22:06:41 +0900
commite8c13118eb39a3acaf70430951f7049c53799bae (patch)
tree3a91075c6e93f53c60cea3ebcb714575f0ce5b79 /src/modules/ecore_evas/engines/extn
parentb95ef3801f9719a8f8ff731e25d66a8d1dd417cd (diff)
fix mingw build for setuid fix/checks
Diffstat (limited to 'src/modules/ecore_evas/engines/extn')
-rw-r--r--src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c
index 37261fa41f..593a9457a3 100644
--- a/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c
+++ b/src/modules/ecore_evas/engines/extn/ecore_evas_extn_buf.c
@@ -42,7 +42,9 @@ _extnbuf_new(const char *base, int id, Eina_Bool sys, int num,
42 { 42 {
43 const char *s = NULL; 43 const char *s = NULL;
44 44
45 if (getuid() == getuid()) 45#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
46 if (getuid() == geteuid())
47#endif
46 { 48 {
47 s = getenv("XDG_RUNTIME_DIR"); 49 s = getenv("XDG_RUNTIME_DIR");
48 if (!s) s = getenv("TMPDIR"); 50 if (!s) s = getenv("TMPDIR");