diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-13 09:36:59 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-13 09:40:29 -0500 |
commit | 4959d9c251ce603b8e32e7532559ad2a7867b6ab (patch) | |
tree | 28b21dbe61b1676f3c9b73514f934a77717776d6 /include/os_darwin.h | |
parent | 4527a13debf7ca4c6c193bf2e82351bf3e9e3ea8 (diff) | |
download | stasis-4959d9c251ce603b8e32e7532559ad2a7867b6ab.tar.gz |
Compatibility changes
Diffstat (limited to 'include/os_darwin.h')
-rw-r--r-- | include/os_darwin.h | 26 |
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 |