Raise _XOPEN_SOURCE from 500 to 700
In OpenBSD, _XOPEN_SOURCE 500 forces _POSIX_C_SOURCE down to 199506, which hides the declarations of openat() and fdopendir() and causes compiler warnings. Don't set _POSIX_C_SOURCE, because _XOPEN_SOURCE may set _POSIX_C_SOURCE to a different value.
This commit is contained in:
parent
cdbff0dd1c
commit
84f65f7ce3
|
@ -1,5 +1,4 @@
|
||||||
#define _XOPEN_SOURCE 500
|
#define _XOPEN_SOURCE 700
|
||||||
#define _POSIX_C_SOURCE 200809
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in a new issue