Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 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 |