diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-07-03 23:51:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-17 10:42:23 +0100 |
commit | 6b74c8edac0a4a468741ab7cc4ecef74314d2043 (patch) | |
tree | 6af75fb0c72840a7fc478b04ee28b12c9875eac8 /meta/recipes-core | |
parent | bd47833dea9e1b39ca19b02f06ba9194c6d52be8 (diff) | |
download | openembedded-core-6b74c8edac0a4a468741ab7cc4ecef74314d2043.tar.gz openembedded-core-6b74c8edac0a4a468741ab7cc4ecef74314d2043.tar.bz2 openembedded-core-6b74c8edac0a4a468741ab7cc4ecef74314d2043.zip |
udev: Fix build with eglibc 2.16
Include sys/resource.h to get definition of
PRIO_PROCESS
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.patch | 31 | ||||
-rw-r--r-- | meta/recipes-core/udev/udev_164.bb | 7 |
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 @@ +Fixes errors like below with eglibc 2.16 + +libudev/libudev-util-private.c:348:16: error: 'PRIO_PROCESS' undeclared (first use in this function) + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending + +Index: udev-164/libudev/libudev-util-private.c +=================================================================== +--- udev-164.orig/libudev/libudev-util-private.c 2010-08-03 02:42:26.000000000 -0700 ++++ udev-164/libudev/libudev-util-private.c 2012-07-03 10:53:35.082346684 -0700 +@@ -21,6 +21,7 @@ + #include <grp.h> + #include <sys/wait.h> + #include <sys/param.h> ++#include <sys/resource.h> + + #include "libudev.h" + #include "libudev-private.h" +Index: udev-164/udev/udevd.c +=================================================================== +--- udev-164.orig/udev/udevd.c 2010-10-13 04:08:29.000000000 -0700 ++++ udev-164/udev/udevd.c 2012-07-03 10:53:19.214345914 -0700 +@@ -43,6 +43,7 @@ + #include <sys/ioctl.h> + #include <sys/inotify.h> + #include <sys/utsname.h> ++#include <sys/resource.h> + + #include "udev.h" + #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 @@ include udev.inc -PR = "r13" - -SRC_URI += "file://udev-166-v4l1-1.patch" +PR = "r14" +SRC_URI += "file://udev-166-v4l1-1.patch \ + file://include_resource.patch \ + " SRC_URI[md5sum] = "fddac2d54761ea34865af9467377ca9f" SRC_URI[sha256sum] = "c12e66280b5e1465f6587a8cfa47d7405c4caa7e52ce5dd13478d04f6ec05e5c" |