summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_menu.c
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/lib/efreet/efreet_menu.c
parentb95ef3801f9719a8f8ff731e25d66a8d1dd417cd (diff)
fix mingw build for setuid fix/checks
Diffstat (limited to 'src/lib/efreet/efreet_menu.c')
-rw-r--r--src/lib/efreet/efreet_menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index 1af99f1b0a..03ce851e6e 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -14,6 +14,7 @@ static int _efreet_menu_log_dom = -1;
14#include "Efreet.h" 14#include "Efreet.h"
15#include "efreet_private.h" 15#include "efreet_private.h"
16#include "efreet_xml.h" 16#include "efreet_xml.h"
17#include <unistd.h>
17 18
18typedef struct Efreet_Menu_Move Efreet_Menu_Move; 19typedef struct Efreet_Menu_Move Efreet_Menu_Move;
19 20
@@ -399,7 +400,9 @@ efreet_menu_init(void)
399 return 0; 400 return 0;
400 } 401 }
401 402
402 if (getuid() == getuid()) 403#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
404 if (getuid() == geteuid())
405#endif
403 efreet_menu_prefix = getenv("XDG_MENU_PREFIX"); 406 efreet_menu_prefix = getenv("XDG_MENU_PREFIX");
404 if (!efreet_menu_prefix) efreet_menu_prefix = ""; 407 if (!efreet_menu_prefix) efreet_menu_prefix = "";
405 408