Skip to content

Commit 27935e9

Browse files
committed
Fix macOS build
1 parent 92c0ccd commit 27935e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/common/config/ConfigCache.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,13 @@ void ConfigCache::File::getTime(timespec& time)
114114
system_call_failed::raise("stat");
115115
}
116116

117+
#ifdef DARWIN
118+
time.tv_sec = st.st_mtimespec.tv_sec;
119+
time.tv_nsec = st.st_mtimespec.tv_nsec;
120+
#else
117121
time.tv_sec = st.st_mtim.tv_sec;
118122
time.tv_nsec = st.st_mtim.tv_nsec;
123+
#endif
119124
}
120125
#endif
121126

0 commit comments

Comments
 (0)