mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-22 22:12:35 +01:00
31 lines
960 B
Diff
31 lines
960 B
Diff
Patch-Source: https://github.com/unfs3/unfs3/commit/a4e5d128a1b93a7bd05d5dc78c886a072cf0f76b
|
|
needed since https://github.com/bminor/musl/commit/25e6fee27f4a293728dd15b659170e7b9c7db9bc
|
|
--
|
|
From a4e5d128a1b93a7bd05d5dc78c886a072cf0f76b Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Wed, 14 Dec 2022 14:50:10 -0800
|
|
Subject: [PATCH] Alias off64_t to off_t on linux if not defined
|
|
|
|
Musl C library does not define off64_t and has 64-bit default off_t
|
|
therefore define off64_t as an alias on linux as well when configure
|
|
detects that off64_t is not provided by a linux system
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
nfs.h | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/nfs.h b/nfs.h
|
|
index aded011..7996c67 100644
|
|
--- a/nfs.h
|
|
+++ b/nfs.h
|
|
@@ -62,7 +62,7 @@ typedef int32_t int32;
|
|
#endif
|
|
|
|
#ifndef HAVE_OFF64_T
|
|
-#ifdef __APPLE__
|
|
+#if defined(__APPLE__) || defined(__linux__)
|
|
typedef off_t off64_t;
|
|
#endif
|
|
#endif
|