mediatek: Add support for Xiaomi Redmi Router AX6S
[openwrt/staging/mkresin.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 --- a/scripts/mod/file2alias.c
12 +++ b/scripts/mod/file2alias.c
13 @@ -38,6 +38,9 @@ typedef struct {
14 __u8 b[16];
15 } guid_t;
16
17 +#ifdef __APPLE__
18 +#define uuid_t compat_uuid_t
19 +#endif
20 /* backwards compatibility, don't use in new code */
21 typedef struct {
22 __u8 b[16];