[hfsplus-tools] Add missing patch file

Matthew Garrett mjg59 at fedoraproject.org
Sat Nov 19 10:45:37 UTC 2011


commit dc07a0ef907612e08143336891e060f475b17b28
Author: Matthew Garrett <mjg at redhat.com>
Date:   Sat Nov 19 05:45:22 2011 -0500

    Add missing patch file

 hfsplus-tools-332.14-fix-uuid.patch |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/hfsplus-tools-332.14-fix-uuid.patch b/hfsplus-tools-332.14-fix-uuid.patch
new file mode 100644
index 0000000..30c178f
--- /dev/null
+++ b/hfsplus-tools-332.14-fix-uuid.patch
@@ -0,0 +1,31 @@
+--- diskdev_cmds-332.14.orig/include/missing.h	2011-11-18 18:20:56.617779427 -0500
++++ diskdev_cmds-332.14/include/missing.h	2011-11-18 18:20:07.619736510 -0500
+@@ -70,7 +70,7 @@
+ #define NAME_MAX	255
+ 
+ /* Byteswap stuff */
+-#define NXSwapHostLongToBig(x)		cpu_to_be64(x)
++#define NXSwapHostLongToBig(x)		cpu_to_be32(x)
+ #define NXSwapBigShortToHost(x) 	be16_to_cpu(x)
+ #define OSSwapBigToHostInt16(x)		be16_to_cpu(x)
+ #define NXSwapBigLongToHost(x)		be32_to_cpu(x)
+@@ -86,6 +86,9 @@
+ #ifndef be32_to_cpu
+ #define be32_to_cpu(x) bswap_32(x)
+ #endif
++#ifndef cpu_to_be32
++#define cpu_to_be32(x) bswap_32(x)
++#endif
+ #ifndef be64_to_cpu
+ #define be64_to_cpu(x) bswap_64(x)
+ #endif
+@@ -100,6 +103,9 @@
+ #ifndef be32_to_cpu
+ #define be32_to_cpu(x)	(x)
+ #endif
++#ifndef cpu_to_be32
++#define cpu_to_be32(x)	(x)
++#endif
+ #ifndef be64_to_cpu
+ #define be64_to_cpu(x)	(x)
+ #endif


More information about the scm-commits mailing list