edgar.c: set _XOPEN_SOURCE == 500