summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-04-05 04:01:08 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:00 -0700
commit51603798046c8e673cad8ddecea7e6c86eef0d9c (patch)
tree0fc6d0956498935d691e7041e48e76cd850d27c6 /extras
parentf040a4a271dd093413303158efb027fe9e891e80 (diff)
[PATCH] udev_volume_id: fix endianess macros
Diffstat (limited to 'extras')
-rw-r--r--extras/volume_id/volume_id/util.h4
-rw-r--r--extras/volume_id/volume_id/volume_id.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/extras/volume_id/volume_id/util.h b/extras/volume_id/volume_id/util.h
index 9cea8fc3a0..e18efe2f21 100644
--- a/extras/volume_id/volume_id/util.h
+++ b/extras/volume_id/volume_id/util.h
@@ -29,6 +29,8 @@
# include <config.h>
#endif
+#include <endian.h>
+
/* size of superblock buffer, reiserfs block is at 64k */
#define SB_BUFFER_SIZE 0x11000
/* size of seek buffer, FAT cluster is 32k max */
@@ -52,6 +54,7 @@
(((__u64)(x) & 0x000000000000ff00ull) << 40) | \
(((__u64)(x) & 0x00000000000000ffull) << 56))
+#ifdef __BYTE_ORDER
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
#define le16_to_cpu(x) (x)
#define le32_to_cpu(x) (x)
@@ -69,6 +72,7 @@
#define cpu_to_le32(x) bswap32(x)
#define cpu_to_be32(x) (x)
#endif
+#endif /* __BYTE_ORDER */
enum uuid_format {
UUID_DCE_STRING,
diff --git a/extras/volume_id/volume_id/volume_id.h b/extras/volume_id/volume_id/volume_id.h
index c7fa0d9bea..2266694f5e 100644
--- a/extras/volume_id/volume_id/volume_id.h
+++ b/extras/volume_id/volume_id/volume_id.h
@@ -21,7 +21,7 @@
#ifndef _VOLUME_ID_H_
#define _VOLUME_ID_H_
-#define VOLUME_ID_VERSION 43
+#define VOLUME_ID_VERSION 44
#define VOLUME_ID_LABEL_SIZE 64
#define VOLUME_ID_UUID_SIZE 36