New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build broken on MacOS due to tv_nsec #1230
Comments
Original Redmine Comment The other thing is that the V3File is checking the 'st_mtime' macro for the presence of the fields st_ctim and st_mtim. This macro is defined on MacOS. There might be a more portable way to check for the presence of these fields.
|
Original Redmine Comment Removing that define does fix the build error:
|
Original Redmine Comment From http://man7.org/linux/man-pages/man2/stat.2.html: "Nanosecond timestamps were standardized in POSIX.1-2008, and, I've confirmed that checking the _BSD_SOURCE macro fixes the problem on MacOS:
|
Original Redmine Comment Thanks. The reliable thing to do is run an experiment in configure, which I should have done in the first place. Fixed in git towards 3.914. |
Original Redmine Comment In 3.914. |
Author Name: Jeff Bush (@jbush001)
Original Redmine Issue: 1230 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
After change 5bc2f87, the build fails on MacOS (Command line tools 9.0, macOS Sierra 10.12):
Looking in /usr/include/sys/stat.h, it appears setting _DARWIN_C_SOURCE might fix this (not sure what other side effects it might have):
The text was updated successfully, but these errors were encountered: