@bnoordhuis this isn't catching on sunos, would it be inappropriate if I add `defined(_XOPEN_SOURCE)` or is that too broad?