From 30763e2f9dac0ddd19a7c5bf272a556d5c3af17d Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Thu, 15 Apr 2021 12:41:40 +0200 Subject: [PATCH] Add compatibility define for off64_t. Not all systems define off64_t. --- libgrive/src/util/OS.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libgrive/src/util/OS.hh b/libgrive/src/util/OS.hh index bd28e30..3fe89b8 100644 --- a/libgrive/src/util/OS.hh +++ b/libgrive/src/util/OS.hh @@ -31,6 +31,10 @@ class Path ; enum FileType { FT_FILE = 1, FT_DIR = 2, FT_UNKNOWN = 3 } ; +#ifndef off64_t +#define off64_t off_t +#endif + namespace os { struct Error : virtual Exception {} ;