Fix warnings about redefined _XOPEN_SOURCE and _POSIX_C_SOURCE macros

Cherry-picked from !636 (merged)

Merge request reports

Loading