ecore_exe: fix compilation on fedora 18.
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 22 Jun 2012 05:36:00 +0000 (05:36 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 22 Jun 2012 05:36:00 +0000 (05:36 +0000)
setpriority needs sys/resource.h. See:

http://linux.die.net/man/2/setpriority

I let sys/time.h, it does not hurt on linux and is anyway needed for BSD systems.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@72684 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/lib/ecore/ecore_exe.c

index a306f75..549ad19 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
          an implicit requirement that the window had keyboard focus to retrieve
          a timestamp that wasn't used. This removes that requirement and fixes
          ticket #1030.
+
+2012-06-22 Vincent Torri
+
+       * ecore_exe: fix compilation on fedora 18.
index 7931a96..6db32a9 100644 (file)
@@ -2,11 +2,6 @@
 # include <config.h>
 #endif
 
-#if defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__)
-# include <sys/time.h>
-# include <sys/resource.h>
-#endif
-
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -14,6 +9,8 @@
 #include <sys/types.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <sys/time.h>
+#include <sys/resource.h>
 
 #ifdef HAVE_SYS_PRCTL_H
 # include <sys/prctl.h>