mortie / swaylock-effects

Swaylock, with fancy effects
MIT License
707 stars 46 forks source link

Unbreak build on FreeBSD #35

Closed jbeich closed 3 years ago

jbeich commented 3 years ago

On FreeBSD _XOPEN_SOURCE overrides _POSIX_C_SOURCE. fmin (C99) and CLOCK_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

mortie commented 3 years ago

Hey, thanks. I should set up CI to build on a bunch of different systems to prevent these sorts of problems in the future.