git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a4e27cd
)
RHEL 5: Also add le{16,64}toh functions
author
Richard Jones
<rjones@redhat.com>
Thu, 29 Oct 2009 18:36:12 +0000
(18:36 +0000)
committer
Richard Jones
<rjones@redhat.com>
Thu, 29 Oct 2009 18:36:12 +0000
(18:36 +0000)
hivex/hivex.c
patch
|
blob
|
history
diff --git
a/hivex/hivex.c
b/hivex/hivex.c
index
85d6c7b
..
a0a730c
100644
(file)
--- a/
hivex/hivex.c
+++ b/
hivex/hivex.c
@@
-45,9
+45,15
@@
#ifndef be64toh
#define be64toh(x) __bswap_64 (x)
#endif
#ifndef be64toh
#define be64toh(x) __bswap_64 (x)
#endif
+#ifndef le16toh
+#define le32toh(x) (x)
+#endif
#ifndef le32toh
#define le32toh(x) (x)
#endif
#ifndef le32toh
#define le32toh(x) (x)
#endif
+#ifndef le64toh
+#define le32toh(x) (x)
+#endif
#else
#ifndef be32toh
#define be32toh(x) (x)
#else
#ifndef be32toh
#define be32toh(x) (x)
@@
-55,9
+61,15
@@
#ifndef be64toh
#define be64toh(x) (x)
#endif
#ifndef be64toh
#define be64toh(x) (x)
#endif
+#ifndef le16toh
+#define le16toh(x) __bswap_16 (x)
+#endif
#ifndef le32toh
#define le32toh(x) __bswap_32 (x)
#endif
#ifndef le32toh
#define le32toh(x) __bswap_32 (x)
#endif
+#ifndef le64toh
+#define le64toh(x) __bswap_64 (x)
+#endif
#endif
#include "hivex.h"
#endif
#include "hivex.h"