From 4959d9c251ce603b8e32e7532559ad2a7867b6ab Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 13 Feb 2024 09:36:59 -0500 Subject: Compatibility changes --- include/os_darwin.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/os_darwin.h (limited to 'include/os_darwin.h') diff --git a/include/os_darwin.h b/include/os_darwin.h new file mode 100644 index 0000000..390968c --- /dev/null +++ b/include/os_darwin.h @@ -0,0 +1,26 @@ +#ifndef OMC_OS_DARWIN_H +#define OMC_OS_DARWIN_H + +#include + +#ifndef __DARWIN_64_BIT_INO_T +#define statvfs statfs + +#ifndef ST_RDONLY +#define ST_RDONLY MNT_RDONLY +#endif + +#define ST_NOEXEC MNT_NOEXEC +#define f_flag f_flags +#endif // __DARWIN_64_BIT_INO_T + +#include + +#ifndef PATH_MAX +#include +#endif + +extern char **environ; +#define __environ environ + +#endif -- cgit