From 2a04a5d5b732107316e0dd22fd59bf67b2e3572d Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 13 Feb 2023 13:04:17 -0800 Subject: [PATCH] unfs3: Add missing header files These enable builds with additional warnings as errors Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- .../unfs3/0001-fix-building-on-macOS.patch | 27 +++++++++++++++++++ meta/recipes-devtools/unfs3/unfs3_git.bb | 1 + 2 files changed, 28 insertions(+) create mode 100644 meta/recipes-devtools/unfs3/unfs3/0001-fix-building-on-macOS.patch diff --git a/meta/recipes-devtools/unfs3/unfs3/0001-fix-building-on-macOS.patch b/meta/recipes-devtools/unfs3/unfs3/0001-fix-building-on-macOS.patch new file mode 100644 index 00000000000..f18ffd37110 --- /dev/null +++ b/meta/recipes-devtools/unfs3/unfs3/0001-fix-building-on-macOS.patch @@ -0,0 +1,27 @@ +From 989b87ae46b3183a742031373fbb3e912ab9b666 Mon Sep 17 00:00:00 2001 +From: Andrey Filipenkov +Date: Wed, 2 Nov 2022 13:38:40 +0300 +Subject: [PATCH] fix building on macOS + +Signed-off-by: Khem Raj +Upstream-Status: Backport [https://github.com/unfs3/unfs3/commit/989b87ae46b3183a742031373fbb3e912ab9b666] +--- + attr.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/attr.c b/attr.c +index 6253e84..0ce9375 100644 +--- a/attr.c ++++ b/attr.c +@@ -18,6 +18,8 @@ + #include + #include + #include ++#include ++#include + + #include "backend.h" + #include "nfs.h" +-- +2.39.1 + diff --git a/meta/recipes-devtools/unfs3/unfs3_git.bb b/meta/recipes-devtools/unfs3/unfs3_git.bb index be3870b8a44..9913a503e88 100644 --- a/meta/recipes-devtools/unfs3/unfs3_git.bb +++ b/meta/recipes-devtools/unfs3/unfs3_git.bb @@ -16,6 +16,7 @@ SRC_URI = "git://github.com/unfs3/unfs3.git;protocol=https;branch=master \ file://0001-daemon.c-Fix-race-window-for-writing-of-the-pid-file.patch \ file://0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch \ file://0001-locate.c-Include-attr.h.patch \ + file://0001-fix-building-on-macOS.patch \ " SRCREV = "c8f2d2cd4529955419bad0e163f88d47ff176b8d" UPSTREAM_CHECK_GITTAGREGEX = "unfs3\-(?P\d+(\.\d+)+)" -- 2.47.3