aboutsummaryrefslogtreecommitdiff
path: root/target/linux/generic/hack-6.6/211-darwin-uuid-typedef-clash.patch
blob: c0e0b24e3cab1722b7729bed61301ac181fa5c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From e44fc2af1ddc452b6659d08c16973d65c73b7d0a Mon Sep 17 00:00:00 2001
From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Date: Wed, 5 Feb 2020 18:36:43 +0000
Subject: [PATCH] file2alias: build on macos

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
---
 scripts/mod/file2alias.c | 3 +++
 1 file changed, 3 insertions(+)

--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -35,6 +35,9 @@ typedef uint32_t	__u32;
 typedef uint16_t	__u16;
 typedef unsigned char	__u8;
 
+#ifdef __APPLE__
+#define uuid_t compat_uuid_t
+#endif
 /* UUID types for backward compatibility, don't use in new code */
 typedef struct {
 	__u8 b[16];