[oe-commits] Frans Meulenbroeks : udev 1.5.1: added hack to make it compilable

git version control git at git.openembedded.org
Thu Mar 11 20:52:10 UTC 2010


Module: openembedded.git
Branch: sanity
Commit: 84d630a1eadc42a905f9ec5051d35b1b55db8551
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=84d630a1eadc42a905f9ec5051d35b1b55db8551

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Thu Mar 11 21:10:24 2010 +0100

udev 1.5.1: added hack to make it compilable

scsi.h uses u8 to identify fields and includes linux/types.h for it
however that one says __u8. Not sure what the real fix should be
but with -Du8==__u8 made it working again

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>

---

 recipes/udev/udev_151.bb |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/recipes/udev/udev_151.bb b/recipes/udev/udev_151.bb
index 810d8d5..84f122b 100644
--- a/recipes/udev/udev_151.bb
+++ b/recipes/udev/udev_151.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 the hotplug package and requires a kernel not older than 2.6.12."
 LICENSE = "GPL"
 
-PR = "r4"
+PR = "r5"
 
 
 # Needed for udev-extras
@@ -12,6 +12,9 @@ DEPENDS = "gperf-native usbutils acl glib-2.0"
 # needed for init.d script
 RDEPENDS_${PN} += "udev-utils"
 
+# hack to fix that scsi.h uses u8 whereas linux/types.h provides __u8
+CFLAGS += "-Du8=__u8"
+
 SRC_URI = "http://kernel.org/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz;name=udev151targz \
 	   file://mount.blacklist \
 	   file://run.rules \





More information about the Openembedded-commits mailing list