summaryrefslogtreecommitdiff
path: root/recipes/udev/udev-154/udev-replace-le16toh.patch
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2010-06-16 23:01:50 +0200
committerHenning Heinold <heinold@inf.fu-berlin.de>2010-06-18 00:27:14 +0200
commit1b78440c8d329621a4e8b433112f057833c4dc91 (patch)
treeac30bfaafc01fb6dd072e098af17b037aa7c80d1 /recipes/udev/udev-154/udev-replace-le16toh.patch
parentb5fdd85422bb95ef5aceb12bd357e27ece1503e8 (diff)
udev: add version 154
* not fully testet yet so checking with DEFAULT_PREFERENCE = "-1" * systemd needs it
Diffstat (limited to 'recipes/udev/udev-154/udev-replace-le16toh.patch')
-rw-r--r--recipes/udev/udev-154/udev-replace-le16toh.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/recipes/udev/udev-154/udev-replace-le16toh.patch b/recipes/udev/udev-154/udev-replace-le16toh.patch
new file mode 100644
index 0000000000..7776c9a10e
--- /dev/null
+++ b/recipes/udev/udev-154/udev-replace-le16toh.patch
@@ -0,0 +1,21 @@
+This patch is needed on uclibc.
+
+-Khem
+
+Index: udev-151/extras/ata_id/ata_id.c
+===================================================================
+--- udev-151.orig/extras/ata_id/ata_id.c 2010-06-04 14:08:41.912730501 -0700
++++ udev-151/extras/ata_id/ata_id.c 2010-06-04 14:09:31.492734527 -0700
+@@ -168,7 +168,11 @@ static void disk_identify_fixup_uint16 (
+ uint16_t *p;
+
+ p = (uint16_t *) identify;
+- p[offset_words] = le16toh (p[offset_words]);
++#if __BYTE_ORDER == __LITTLE_ENDIAN
++ p[offset_words] = p[offset_words];
++#else
++ p[offset_words] = __bswap_16 (p[offset_words]);
++#endif
+ }
+
+ /**