aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-07-11 18:16:32 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-11 18:16:32 +0900
commitb887558afa9c5708330aad97af8669b0b949aba1 (patch)
tree6afb7e9783ab2bf471a88ecfa10fc723ab0949f3 /src/bin/efreet
parentedje: fix build break on Windows. (diff)
downloadefl-b887558afa9c5708330aad97af8669b0b949aba1.tar.gz
efreet: use the correct guard.
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreet_desktop_cache_create.c4
-rw-r--r--src/bin/efreet/efreet_icon_cache_create.c4
-rw-r--r--src/bin/efreet/efreetd.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c
index 15ce7b8013..5432de0d74 100644
--- a/src/bin/efreet/efreet_desktop_cache_create.c
+++ b/src/bin/efreet/efreet_desktop_cache_create.c
@@ -5,7 +5,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
-#ifndef _WIN32
+#ifndef HAVE_SYS_RESOURCE_H
#include <sys/time.h>
#include <sys/resource.h>
#endif
@@ -254,7 +254,7 @@ main(int argc, char **argv)
}
extra_dirs = eina_list_sort(extra_dirs, -1, EINA_COMPARE_CB(strcmp));
-#ifndef _WIN32
+#ifndef HAVE_SYS_RESOURCE_H
setpriority(PRIO_PROCESS, 0, 19);
#endif
diff --git a/src/bin/efreet/efreet_icon_cache_create.c b/src/bin/efreet/efreet_icon_cache_create.c
index d5b3c9cec0..d650dc3482 100644
--- a/src/bin/efreet/efreet_icon_cache_create.c
+++ b/src/bin/efreet/efreet_icon_cache_create.c
@@ -6,7 +6,7 @@
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
-#ifndef _WIN32
+#ifndef HAVE_SYS_RESOURCE_H
#include <sys/time.h>
#include <sys/resource.h>
#endif
@@ -772,7 +772,7 @@ main(int argc, char **argv)
flush = EINA_TRUE;
}
-#ifndef _WIN32
+#ifndef HAVE_SYS_RESOURCE_H
setpriority(PRIO_PROCESS, 0, 19);
#endif
diff --git a/src/bin/efreet/efreetd.c b/src/bin/efreet/efreetd.c
index dc71564e15..a1acfef93b 100644
--- a/src/bin/efreet/efreetd.c
+++ b/src/bin/efreet/efreetd.c
@@ -3,7 +3,7 @@
#endif
#include <stdlib.h>
-#ifndef _WIN32
+#ifndef HAVE_SYS_RESOURCE_H
#include <sys/time.h>
#include <sys/resource.h>
#endif
@@ -52,7 +52,7 @@ main(int argc, char *argv[])
if (!dbus_init()) goto dbus_error;
if (!cache_init()) goto cache_error;
-#ifndef _WIN32
+#ifndef HAVE_SYS_RESOURCE_H
setpriority(PRIO_PROCESS, 0, 19);
#endif