diff options
| author | Felix Fietkau <nbd@nbd.name> | 2023-07-31 12:41:13 +0200 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2023-08-12 16:45:47 +0200 |
| commit | 16c37ba9136ff431c7e3c97cc27e4ea166b8020a (patch) | |
| tree | a6daa3daa8f30675fc0ddb5fcc19bcc8b749d1c9 /package/boot | |
| parent | 22d7ac4b804fcc87813a6575b3ca323c32ef2365 (diff) | |
| download | upstream-16c37ba9136ff431c7e3c97cc27e4ea166b8020a.tar.gz upstream-16c37ba9136ff431c7e3c97cc27e4ea166b8020a.tar.bz2 upstream-16c37ba9136ff431c7e3c97cc27e4ea166b8020a.zip | |
arm-trusted-firmware-tools: fix build on macOS/Darwin
Resolve conflicts with the uuid type from darwin system headers
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/boot')
| -rw-r--r-- | package/boot/arm-trusted-firmware-tools/patches/002-darwin_compile.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/package/boot/arm-trusted-firmware-tools/patches/002-darwin_compile.patch b/package/boot/arm-trusted-firmware-tools/patches/002-darwin_compile.patch new file mode 100644 index 00000000000..6bc8192f442 --- /dev/null +++ b/package/boot/arm-trusted-firmware-tools/patches/002-darwin_compile.patch @@ -0,0 +1,21 @@ +--- a/tools/fiptool/fiptool.c ++++ b/tools/fiptool/fiptool.c +@@ -3,7 +3,7 @@ + * + * SPDX-License-Identifier: BSD-3-Clause + */ +- ++#define _DARWIN_C_SOURCE + #ifndef _MSC_VER + #include <sys/mount.h> + #endif +@@ -18,6 +18,9 @@ + #include <stdio.h> + #include <stdlib.h> + #include <string.h> ++#include <unistd.h> ++ ++#define uuid_t fiptool_uuid_t + + #include "fiptool.h" + #include "tbbr_config.h" |
