kernel: 5.4 fix build on darwin
[openwrt/staging/hauke.git] / target / linux / generic / hack-5.4 / 211-darwin-uuid-typedef-clash.patch
1 From e44fc2af1ddc452b6659d08c16973d65c73b7d0a Mon Sep 17 00:00:00 2001
2 From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
3 Date: Wed, 5 Feb 2020 18:36:43 +0000
4 Subject: [PATCH] file2alias: build on macos
5
6 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 ---
8 scripts/mod/file2alias.c | 3 +++
9 1 file changed, 3 insertions(+)
10
11 diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
12 index c91eba751804..e756fd80b721 100644
13 --- a/scripts/mod/file2alias.c
14 +++ b/scripts/mod/file2alias.c
15 @@ -38,6 +38,9 @@ typedef struct {
16 __u8 b[16];
17 } guid_t;
18
19 +#ifdef __APPLE__
20 +#define uuid_t compat_uuid_t
21 +#endif
22 /* backwards compatibility, don't use in new code */
23 typedef struct {
24 __u8 b[16];
25 --
26 2.21.1 (Apple Git-122.3)
27