ngtcp2: Use APK style release number
[feed/packages.git] / utils / gptfdisk / patches / 010-Use-64bit-time_t-on-linux-as-well.patch
1 From 7dfa8984f5a30f313d8675ff6097c8592d636d10 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Mon, 12 Dec 2022 12:50:07 -0800
4 Subject: [PATCH] Use 64bit time_t on linux as well
5
6 Alias 64bit version of stat functions to original functions
7 we are already passing -D_FILE_OFFSET_BITS=64 in linux Makefile
8
9 Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 ---
11 diskio-unix.cc | 6 +++++-
12 1 file changed, 5 insertions(+), 1 deletion(-)
13
14 --- a/diskio-unix.cc
15 +++ b/diskio-unix.cc
16 @@ -37,8 +37,12 @@
17
18 using namespace std;
19
20 -#ifdef __APPLE__
21 +#if defined(__APPLE__) || defined(__linux__)
22 #define off64_t off_t
23 +#define stat64 stat
24 +#define fstat64 fstat
25 +#define lstat64 lstat
26 +#define lseek64 lseek
27 #endif
28
29 // Returns the official "real" name for a shortened version of same.