diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-12-15 00:45:38 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-21 10:16:31 +0000 |
| commit | 337a23e0bd717b56b5996c83f503941b16ce1fd6 (patch) | |
| tree | b2323396b7f3f0617423ffcb8b2180591266798f /meta/recipes-devtools | |
| parent | 38156e07859afe463c92b0eb03e446a76832837a (diff) | |
| download | poky-337a23e0bd717b56b5996c83f503941b16ce1fd6.tar.gz | |
unfs3: Define off64_t in terms of off_t on musl
(From OE-Core rev: b096c469fe54132a9862ffff1daf3dedcfc63ec4)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/unfs3/unfs3/0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch | 28 | ||||
| -rw-r--r-- | meta/recipes-devtools/unfs3/unfs3_git.bb | 3 |
2 files changed, 30 insertions, 1 deletions
diff --git a/meta/recipes-devtools/unfs3/unfs3/0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch b/meta/recipes-devtools/unfs3/unfs3/0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch new file mode 100644 index 0000000000..91909fa236 --- /dev/null +++ b/meta/recipes-devtools/unfs3/unfs3/0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 949db882e487d728c44bb68139682b38396dd275 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Wed, 14 Dec 2022 14:50:10 -0800 | ||
| 4 | Subject: [PATCH] Alias off64_t to off_t on linux if not defined | ||
| 5 | |||
| 6 | Musl C library does not define off64_t and has 64-bit default off_t | ||
| 7 | therefore define off64_t as an alias on linux as well when configure | ||
| 8 | detects that off64_t is not provided by a linux system | ||
| 9 | |||
| 10 | Upstream-Status: Submitted [https://github.com/unfs3/unfs3/pull/29] | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | nfs.h | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/nfs.h b/nfs.h | ||
| 17 | index aded011..7996c67 100644 | ||
| 18 | --- a/nfs.h | ||
| 19 | +++ b/nfs.h | ||
| 20 | @@ -62,7 +62,7 @@ typedef int32_t int32; | ||
| 21 | #endif | ||
| 22 | |||
| 23 | #ifndef HAVE_OFF64_T | ||
| 24 | -#ifdef __APPLE__ | ||
| 25 | +#if defined(__APPLE__) || defined(__linux__) | ||
| 26 | typedef off_t off64_t; | ||
| 27 | #endif | ||
| 28 | #endif | ||
diff --git a/meta/recipes-devtools/unfs3/unfs3_git.bb b/meta/recipes-devtools/unfs3/unfs3_git.bb index 606c103a79..a4701bdb57 100644 --- a/meta/recipes-devtools/unfs3/unfs3_git.bb +++ b/meta/recipes-devtools/unfs3/unfs3_git.bb | |||
| @@ -14,7 +14,8 @@ DEPENDS:append:class-nativesdk = " flex-nativesdk" | |||
| 14 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
| 15 | SRC_URI = "git://github.com/unfs3/unfs3.git;protocol=https;branch=master \ | 15 | SRC_URI = "git://github.com/unfs3/unfs3.git;protocol=https;branch=master \ |
| 16 | file://0001-daemon.c-Fix-race-window-for-writing-of-the-pid-file.patch \ | 16 | file://0001-daemon.c-Fix-race-window-for-writing-of-the-pid-file.patch \ |
| 17 | " | 17 | file://0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch \ |
| 18 | " | ||
| 18 | SRCREV = "c8f2d2cd4529955419bad0e163f88d47ff176b8d" | 19 | SRCREV = "c8f2d2cd4529955419bad0e163f88d47ff176b8d" |
| 19 | UPSTREAM_CHECK_GITTAGREGEX = "unfs3\-(?P<pver>\d+(\.\d+)+)" | 20 | UPSTREAM_CHECK_GITTAGREGEX = "unfs3\-(?P<pver>\d+(\.\d+)+)" |
| 20 | 21 | ||
