summaryrefslogtreecommitdiff
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2013-07-09 09:04:58 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2013-07-09 09:06:21 +0100
commit531be113be920ef4ae0379e1c1f9daa7ce4e58e9 (patch)
tree222a5055320ce1ef07516a7136f02208397d4e77 /src/bin/efreet
parentfad576295ed101c746dfdf57d1fe551cdb1d4dd5 (diff)
efreet: Guard priority settign and getting functions for WIN32
These functions are not available on a mingw build. Not really needed either so just ifdef them.
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreet_desktop_cache_create.c5
-rw-r--r--src/bin/efreet/efreet_icon_cache_create.c5
-rw-r--r--src/bin/efreet/efreetd.c5
3 files changed, 15 insertions, 0 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c
index 17f41e342a..15ce7b8013 100644
--- a/src/bin/efreet/efreet_desktop_cache_create.c
+++ b/src/bin/efreet/efreet_desktop_cache_create.c
@@ -5,8 +5,10 @@
5#include <fcntl.h> 5#include <fcntl.h>
6#include <unistd.h> 6#include <unistd.h>
7#include <errno.h> 7#include <errno.h>
8#ifndef _WIN32
8#include <sys/time.h> 9#include <sys/time.h>
9#include <sys/resource.h> 10#include <sys/resource.h>
11#endif
10 12
11#include <Eina.h> 13#include <Eina.h>
12#include <Eet.h> 14#include <Eet.h>
@@ -252,7 +254,10 @@ main(int argc, char **argv)
252 } 254 }
253 extra_dirs = eina_list_sort(extra_dirs, -1, EINA_COMPARE_CB(strcmp)); 255 extra_dirs = eina_list_sort(extra_dirs, -1, EINA_COMPARE_CB(strcmp));
254 256
257#ifndef _WIN32
255 setpriority(PRIO_PROCESS, 0, 19); 258 setpriority(PRIO_PROCESS, 0, 19);
259#endif
260
256 /* init external subsystems */ 261 /* init external subsystems */
257 if (!eet_init()) goto eet_error; 262 if (!eet_init()) goto eet_error;
258 if (!ecore_init()) goto ecore_error; 263 if (!ecore_init()) goto ecore_error;
diff --git a/src/bin/efreet/efreet_icon_cache_create.c b/src/bin/efreet/efreet_icon_cache_create.c
index 74732807b0..d5b3c9cec0 100644
--- a/src/bin/efreet/efreet_icon_cache_create.c
+++ b/src/bin/efreet/efreet_icon_cache_create.c
@@ -6,8 +6,10 @@
6#include <fcntl.h> 6#include <fcntl.h>
7#include <unistd.h> 7#include <unistd.h>
8#include <errno.h> 8#include <errno.h>
9#ifndef _WIN32
9#include <sys/time.h> 10#include <sys/time.h>
10#include <sys/resource.h> 11#include <sys/resource.h>
12#endif
11 13
12#include <Eina.h> 14#include <Eina.h>
13#include <Eet.h> 15#include <Eet.h>
@@ -770,7 +772,10 @@ main(int argc, char **argv)
770 flush = EINA_TRUE; 772 flush = EINA_TRUE;
771 } 773 }
772 774
775#ifndef _WIN32
773 setpriority(PRIO_PROCESS, 0, 19); 776 setpriority(PRIO_PROCESS, 0, 19);
777#endif
778
774 if (!eet_init()) return -1; 779 if (!eet_init()) return -1;
775 if (!ecore_init()) return -1; 780 if (!ecore_init()) return -1;
776 781
diff --git a/src/bin/efreet/efreetd.c b/src/bin/efreet/efreetd.c
index b3b63d5b32..dc71564e15 100644
--- a/src/bin/efreet/efreetd.c
+++ b/src/bin/efreet/efreetd.c
@@ -3,8 +3,10 @@
3#endif 3#endif
4 4
5#include <stdlib.h> 5#include <stdlib.h>
6#ifndef _WIN32
6#include <sys/time.h> 7#include <sys/time.h>
7#include <sys/resource.h> 8#include <sys/resource.h>
9#endif
8 10
9#include <Ecore.h> 11#include <Ecore.h>
10#include <Ecore_File.h> 12#include <Ecore_File.h>
@@ -50,7 +52,10 @@ main(int argc, char *argv[])
50 if (!dbus_init()) goto dbus_error; 52 if (!dbus_init()) goto dbus_error;
51 if (!cache_init()) goto cache_error; 53 if (!cache_init()) goto cache_error;
52 54
55#ifndef _WIN32
53 setpriority(PRIO_PROCESS, 0, 19); 56 setpriority(PRIO_PROCESS, 0, 19);
57#endif
58
54 ecore_main_loop_begin(); 59 ecore_main_loop_begin();
55 60
56 cache_shutdown(); 61 cache_shutdown();