summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-07-03 23:51:10 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-17 10:54:00 +0100
commit734e1a9197ba09a1039272fa1670ac118c93e9c0 (patch)
tree1783c07727660c04440d0117f88b2d9044ac33cf /meta/recipes-core
parent34d1281c0edfaad8b009943583730ef45b5545eb (diff)
downloadpoky-734e1a9197ba09a1039272fa1670ac118c93e9c0.tar.gz
udev: Fix build with eglibc 2.16
Include sys/resource.h to get definition of PRIO_PROCESS (From OE-Core rev: 6b74c8edac0a4a468741ab7cc4ecef74314d2043) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/udev/udev/include_resource.patch31
-rw-r--r--meta/recipes-core/udev/udev_164.bb7
2 files changed, 35 insertions, 3 deletions
diff --git a/meta/recipes-core/udev/udev/include_resource.patch b/meta/recipes-core/udev/udev/include_resource.patch
new file mode 100644
index 0000000000..a46ce594d0
--- /dev/null
+++ b/meta/recipes-core/udev/udev/include_resource.patch
@@ -0,0 +1,31 @@
1Fixes errors like below with eglibc 2.16
2
3libudev/libudev-util-private.c:348:16: error: 'PRIO_PROCESS' undeclared (first use in this function)
4
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6Upstream-Status: Pending
7
8Index: udev-164/libudev/libudev-util-private.c
9===================================================================
10--- udev-164.orig/libudev/libudev-util-private.c 2010-08-03 02:42:26.000000000 -0700
11+++ udev-164/libudev/libudev-util-private.c 2012-07-03 10:53:35.082346684 -0700
12@@ -21,6 +21,7 @@
13 #include <grp.h>
14 #include <sys/wait.h>
15 #include <sys/param.h>
16+#include <sys/resource.h>
17
18 #include "libudev.h"
19 #include "libudev-private.h"
20Index: udev-164/udev/udevd.c
21===================================================================
22--- udev-164.orig/udev/udevd.c 2010-10-13 04:08:29.000000000 -0700
23+++ udev-164/udev/udevd.c 2012-07-03 10:53:19.214345914 -0700
24@@ -43,6 +43,7 @@
25 #include <sys/ioctl.h>
26 #include <sys/inotify.h>
27 #include <sys/utsname.h>
28+#include <sys/resource.h>
29
30 #include "udev.h"
31 #include "sd-daemon.h"
diff --git a/meta/recipes-core/udev/udev_164.bb b/meta/recipes-core/udev/udev_164.bb
index c5813ecb47..2a8dd83b6f 100644
--- a/meta/recipes-core/udev/udev_164.bb
+++ b/meta/recipes-core/udev/udev_164.bb
@@ -1,8 +1,9 @@
1include udev.inc 1include udev.inc
2 2
3PR = "r13" 3PR = "r14"
4
5SRC_URI += "file://udev-166-v4l1-1.patch"
6 4
5SRC_URI += "file://udev-166-v4l1-1.patch \
6 file://include_resource.patch \
7 "
7SRC_URI[md5sum] = "fddac2d54761ea34865af9467377ca9f" 8SRC_URI[md5sum] = "fddac2d54761ea34865af9467377ca9f"
8SRC_URI[sha256sum] = "c12e66280b5e1465f6587a8cfa47d7405c4caa7e52ce5dd13478d04f6ec05e5c" 9SRC_URI[sha256sum] = "c12e66280b5e1465f6587a8cfa47d7405c4caa7e52ce5dd13478d04f6ec05e5c"