|
|
@@ -0,0 +1,27 @@
|
|
|
+From e44fc2af1ddc452b6659d08c16973d65c73b7d0a Mon Sep 17 00:00:00 2001
|
|
|
+From: Kevin Darbyshire-Bryant <[email protected]>
|
|
|
+Date: Wed, 5 Feb 2020 18:36:43 +0000
|
|
|
+Subject: [PATCH] file2alias: build on macos
|
|
|
+
|
|
|
+Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
|
|
|
+---
|
|
|
+ scripts/mod/file2alias.c | 3 +++
|
|
|
+ 1 file changed, 3 insertions(+)
|
|
|
+
|
|
|
+diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
|
|
|
+index c91eba751804..e756fd80b721 100644
|
|
|
+--- a/scripts/mod/file2alias.c
|
|
|
++++ b/scripts/mod/file2alias.c
|
|
|
+@@ -38,6 +38,9 @@ typedef struct {
|
|
|
+ __u8 b[16];
|
|
|
+ } guid_t;
|
|
|
+
|
|
|
++#ifdef __APPLE__
|
|
|
++#define uuid_t compat_uuid_t
|
|
|
++#endif
|
|
|
+ /* backwards compatibility, don't use in new code */
|
|
|
+ typedef struct {
|
|
|
+ __u8 b[16];
|
|
|
+--
|
|
|
+2.21.1 (Apple Git-122.3)
|
|
|
+
|