From 885997a9841ab666ccf1f1b573b980aa8c84a339 Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Sat, 25 Jun 2022 21:15:57 +0100 Subject: Define stat64 to be stat on MacOS. This fixes compilation on more recent macOS versions, where stat64 is not defined anymore. --- runtime/POSIX/fd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime') diff --git a/runtime/POSIX/fd.h b/runtime/POSIX/fd.h index a5e15c9b..39307ceb 100644 --- a/runtime/POSIX/fd.h +++ b/runtime/POSIX/fd.h @@ -23,7 +23,12 @@ #include #endif +#include + #ifdef __APPLE__ +#ifndef stat64 +#define stat64 stat +#endif #include #endif #ifdef __FreeBSD__ -- cgit 1.4.1