Closed jbeich closed 3 years ago
On FreeBSD _XOPEN_SOURCE overrides _POSIX_C_SOURCE. fmin (C99) and CLOCK_MONOTONIC require _XOPEN_SOURCE >= 600.
_XOPEN_SOURCE
_POSIX_C_SOURCE
fmin
CLOCK_MONOTONIC
_XOPEN_SOURCE >= 600
https://github.com/freebsd/freebsd/blob/releng/12.2/sys/sys/cdefs.h#L690-L693 https://github.com/freebsd/freebsd/blob/releng/12.2/lib/msun/src/math.h#L312 https://github.com/freebsd/freebsd/blob/releng/12.2/include/time.h#L108
Hey, thanks. I should set up CI to build on a bunch of different systems to prevent these sorts of problems in the future.
On FreeBSD
_XOPEN_SOURCE
overrides_POSIX_C_SOURCE
.fmin
(C99) andCLOCK_MONOTONIC
require_XOPEN_SOURCE >= 600
.https://github.com/freebsd/freebsd/blob/releng/12.2/sys/sys/cdefs.h#L690-L693 https://github.com/freebsd/freebsd/blob/releng/12.2/lib/msun/src/math.h#L312 https://github.com/freebsd/freebsd/blob/releng/12.2/include/time.h#L108