summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/unfs3/unfs3
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-12-15 00:45:38 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-21 10:16:31 +0000
commit337a23e0bd717b56b5996c83f503941b16ce1fd6 (patch)
treeb2323396b7f3f0617423ffcb8b2180591266798f /meta/recipes-devtools/unfs3/unfs3
parent38156e07859afe463c92b0eb03e446a76832837a (diff)
downloadpoky-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/unfs3/unfs3')
-rw-r--r--meta/recipes-devtools/unfs3/unfs3/0001-Alias-off64_t-to-off_t-on-linux-if-not-defined.patch28
1 files changed, 28 insertions, 0 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 @@
1From 949db882e487d728c44bb68139682b38396dd275 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 14 Dec 2022 14:50:10 -0800
4Subject: [PATCH] Alias off64_t to off_t on linux if not defined
5
6Musl C library does not define off64_t and has 64-bit default off_t
7therefore define off64_t as an alias on linux as well when configure
8detects that off64_t is not provided by a linux system
9
10Upstream-Status: Submitted [https://github.com/unfs3/unfs3/pull/29]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 nfs.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/nfs.h b/nfs.h
17index 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