aboutsummaryrefslogtreecommitdiff
path: root/platform/posix.h
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-03-01 09:18:26 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-03-01 09:18:26 +0200
commit047718235df457cae482eb0f92b06697964f37a6 (patch)
treeeb63e295dd0cc1b12f4027f125c0415f6c66f803 /platform/posix.h
parent4d9826548a8ea82a71cf70e9f60704909966d038 (diff)
dfm: add initial macOS support.
Thanks to Pinix for the report and necessary changes.
Diffstat (limited to 'platform/posix.h')
-rw-r--r--platform/posix.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/posix.h b/platform/posix.h
index d098030..611e569 100644
--- a/platform/posix.h
+++ b/platform/posix.h
@@ -24,6 +24,10 @@
#include <stddef.h>
+#define ST_ATIM(s) st_atime
+#define ST_MTIM(s) st_mtime
+#define ST_CTIM(s) st_ctime
+
struct platform {
void *_pad;
};
@@ -58,4 +62,4 @@ fs_watch_free(struct platform *p)
}
#endif // DFM_PLATFORM_POSIX_H
-
+