Dash:
[t2.git] / package / filesystem / hfsplusutils / 0012-Fix-mkfs-not-creating-UUIDs-for-new-filesystems.patch
blob883a7b74fceaf5f8dbdbf1342e8f2b5c98442a03
1 From: Matthew Garrett <mjg59@codon.org.uk>
2 Date: Thu, 24 Oct 2013 01:11:22 -0200
3 Subject: Fix mkfs not creating UUIDs for new filesystems.
4 MIME-Version: 1.0
5 Content-Type: text/plain; charset=UTF-8
6 Content-Transfer-Encoding: 8bit
8 Fix mkfs not creating UUIDs for new filesystems.
10 Thanks to Lars Noodén for reporting the bug at
11 <https://bugs.launchpad.net/bugs/737002>.
13 This closes LP: #737002.
14 ---
15 include/missing.h | 8 +++++++-
16 1 file changed, 7 insertions(+), 1 deletion(-)
18 diff --git a/include/missing.h b/include/missing.h
19 index 0a859c4..f50e8fb 100644
20 --- a/include/missing.h
21 +++ b/include/missing.h
22 @@ -72,7 +72,7 @@
23 #define NAME_MAX 255
25 /* Byteswap stuff */
26 -#define NXSwapHostLongToBig(x) cpu_to_be64(x)
27 +#define NXSwapHostLongToBig(x) cpu_to_be32(x)
28 #define NXSwapBigShortToHost(x) be16_to_cpu(x)
29 #define OSSwapBigToHostInt16(x) be16_to_cpu(x)
30 #define NXSwapBigLongToHost(x) be32_to_cpu(x)
31 @@ -88,6 +88,9 @@
32 #ifndef be32_to_cpu
33 #define be32_to_cpu(x) bswap_32(x)
34 #endif
35 +#ifndef cpu_to_be32
36 +#define cpu_to_be32(x) bswap_32(x)
37 +#endif
38 #ifndef be64_to_cpu
39 #define be64_to_cpu(x) bswap_64(x)
40 #endif
41 @@ -102,6 +105,9 @@
42 #ifndef be32_to_cpu
43 #define be32_to_cpu(x) (x)
44 #endif
45 +#ifndef cpu_to_be32
46 +#define cpu_to_be32(x) (x)
47 +#endif
48 #ifndef be64_to_cpu
49 #define be64_to_cpu(x) (x)
50 #endif