blob: 91909fa23695fde0bf99dbe0ea6d7012e4ad5f3e [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001From 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