1 From c8f75fec1e558d1f6d5bbcdd89ac14b10fa370de Mon Sep 17 00:00:00 2001
2 From: annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>
3 Date: Sun, 18 Feb 2024 09:08:12 +0000
4 Subject: [PATCH] darwin build fixes
8 myrescue-bitmap2ppm.c | 1 +
11 4 files changed, 16 insertions(+)
12 create mode 100644 src/compat.h
14 diff --git a/compat.h b/compat.h
16 index 0000000..99b7239
25 +_Static_assert(sizeof(off_t) == 8, "off_t must be 8 bytes");
26 +#define lseek64 lseek
29 diff --git a/myrescue-bitmap2ppm.c b/myrescue-bitmap2ppm.c
30 index 68ecc29..eb2dd9e 100644
31 --- a/myrescue-bitmap2ppm.c
32 +++ b/myrescue-bitmap2ppm.c
39 int main(int argc, char** argv)
41 diff --git a/myrescue-stat.c b/myrescue-stat.c
42 index c7a115f..264bd55 100644
51 #define BUFFER_SIZE 4096
53 diff --git a/myrescue.c b/myrescue.c
54 index 0b119c5..f9b052c 100644
58 #define __USE_LARGEFILE64 1
59 #define _LARGEFILE_SOURCE 1
60 #define _LARGEFILE64_SOURCE 1
62 #define HAVE_USBRESET 1
64 +#define HAVE_USBRESET 0
76 #define SLEEP_AFTER_USBRESET 5