1diff --git a/src/lib-storage/index/dbox-common/dbox-storage.h b/src/lib-storage/index/dbox-common/dbox-storage.h
2index 8e8aaa1..a3018a4 100644
3--- a/src/lib-storage/index/dbox-common/dbox-storage.h
4+++ b/src/lib-storage/index/dbox-common/dbox-storage.h
5@@ -86,4 +86,10 @@ int dbox_verify_alt_storage(struct mailbox_list *list);
6 bool dbox_header_have_flag(struct mailbox *box, uint32_t ext_id,
7 unsigned int flags_offset, uint8_t flag);
8
9+#if defined(__APPLE__) || defined(__NetBSD__)
10+#define st_atim st_atimespec
11+#define st_ctim st_ctimespec
12+#define st_mtim st_mtimespec
13+#endif
14+
15 #endif