summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-08-18 03:11:09 +0000
committerMike Frysinger <vapier@gentoo.org>2012-08-18 03:11:09 +0000
commit5c53c2036e72dc5e89580acddad9313a1f11fb75 (patch)
tree4c47186b462ac3f54e3cd5e9fd7c73d71ba41cda /dev-libs/ecore/files
parentAdd fix from upstream for building with glibc-2.16 #426254 by devsk. (diff)
downloadhistorical-5c53c2036e72dc5e89580acddad9313a1f11fb75.tar.gz
historical-5c53c2036e72dc5e89580acddad9313a1f11fb75.tar.bz2
historical-5c53c2036e72dc5e89580acddad9313a1f11fb75.zip
Add fix from upstream for building with glibc-2.16 #426812 by Diego Elio Pettenò.
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/ecore/files')
-rw-r--r--dev-libs/ecore/files/ecore-1.2.1-glibc-2.16.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-libs/ecore/files/ecore-1.2.1-glibc-2.16.patch b/dev-libs/ecore/files/ecore-1.2.1-glibc-2.16.patch
new file mode 100644
index 000000000000..2cb886cf3393
--- /dev/null
+++ b/dev-libs/ecore/files/ecore-1.2.1-glibc-2.16.patch
@@ -0,0 +1,37 @@
+------------------------------------------------------------------------
+r72684 | caro | 2012-06-22 01:36:00 -0400 (Fri, 22 Jun 2012) | 8 lines
+
+ecore_exe: fix compilation on fedora 18.
+
+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.
+
+
+Index: src/lib/ecore/ecore_exe.c
+===================================================================
+--- src/lib/ecore/ecore_exe.c (revision 72683)
++++ src/lib/ecore/ecore_exe.c (revision 72684)
+@@ -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>