summaryrefslogtreecommitdiffstats
path: root/src/bfstd.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-08 11:53:19 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-08 11:53:19 -0500
commit8917a48c31540dd7a99f95dd317d6cf1ac2f6803 (patch)
tree673d875cc007d504c6170a9cc19e06e88e5690d1 /src/bfstd.h
parent2d5edb37b924715b4fbee4d917ac334c773fca61 (diff)
downloadbfs-8917a48c31540dd7a99f95dd317d6cf1ac2f6803.tar.xz
tests/xtouch: Add some missing POSIX touch features
Diffstat (limited to 'src/bfstd.h')
-rw-r--r--src/bfstd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bfstd.h b/src/bfstd.h
index 9a06ac1..6bf6ec8 100644
--- a/src/bfstd.h
+++ b/src/bfstd.h
@@ -153,6 +153,15 @@ int xmajor(dev_t dev);
*/
int xminor(dev_t dev);
+// #include <sys/stat.h>
+
+#if __APPLE__
+# define st_atim st_atimespec
+# define st_ctim st_ctimespec
+# define st_mtim st_mtimespec
+# define st_birthtim st_birthtimespec
+#endif
+
// #include <unistd.h>
/**