GNOME Bugzilla – Bug 661386
fix configure running on OpenBSD
Last modified: 2011-10-25 01:20:38 UTC
Created attachment 198720 [details] [review] patch 1) OpenBSD does not have _POSIX_MONOTONIC_CLOCK defined so let's define a hack for it. 2) Use -pthreads all the time for linking. 3) On OpenBSD sys/mount.h and sys/sysctl.h requires sys/param.h to be included first, so let's shuffle the includes a bit. Please comment.
Review of attachment 198720 [details] [review]: I don't like ifdef __OpenBSD__ littered through the code any better than ifdef __linux__. Not sure what to do here.
Review of attachment 198720 [details] [review]: I think what we can do here is to not care about _POSIX_MONOTONIC_CLOCK at all and use a monotonic clock if CLOCK_MONOTONIC is defined. As far as I know and see that should be enough to decide if a system supports a monotonic clock or not. There no need to check it with sysconf(). Mono does this and they are doing fine only by checking the CLOCK_MONOTONIC definition.
Sounds ok to me
Comment on attachment 198720 [details] [review] patch the monotonic clock stuff should be fixed now by the patch for bug 661421
Robert, can you provide a new patch for the remaining issues ?
Created attachment 199362 [details] [review] New patch
The following fix has been pushed: ba7bf09 Fix some build issues on OpenBSD
Created attachment 199880 [details] [review] Fix some build issues on OpenBSD Adapt to some OpenBSD header quirks. Patch by Robert Nagy.