aboutsummaryrefslogtreecommitdiff
path: root/include/os_darwin.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-02-13 10:02:00 -0500
committerGitHub <noreply@github.com>2024-02-13 10:02:00 -0500
commit225566e1f6586b15d5824d0fe54efafc765cbb1c (patch)
tree28b21dbe61b1676f3c9b73514f934a77717776d6 /include/os_darwin.h
parent4527a13debf7ca4c6c193bf2e82351bf3e9e3ea8 (diff)
parent4959d9c251ce603b8e32e7532559ad2a7867b6ab (diff)
downloadstasis-225566e1f6586b15d5824d0fe54efafc765cbb1c.tar.gz
Merge pull request #2 from jhunkeler/compat
Compatibility changes
Diffstat (limited to 'include/os_darwin.h')
-rw-r--r--include/os_darwin.h26
1 files changed, 26 insertions, 0 deletions
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 <sys/mount.h>
+
+#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 <limits.h>
+
+#ifndef PATH_MAX
+#include <sys/syslimits.h>
+#endif
+
+extern char **environ;
+#define __environ environ
+
+#endif