Fix libcody build on hppa*-*-hpux11.11.
2021-01-06 John David Anglin <danglin@gcc.gnu.org> libcody/ChangeLog: PR bootstrap/98506 * resolver.cc: Only use fstatat when _POSIX_C_SOURCE >= 200809L.
This commit is contained in:
parent
758abf1ae3
commit
6d0b075d66
@ -10,7 +10,9 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#if (defined (__unix__) \
|
#if ((defined (__unix__) \
|
||||||
|
&& defined _POSIX_C_SOURCE \
|
||||||
|
&& (_POSIX_C_SOURCE - 0) >= 200809L) \
|
||||||
|| (defined (__Apple__) \
|
|| (defined (__Apple__) \
|
||||||
&& defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
|
&& defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
|
||||||
&& __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000))
|
&& __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000))
|
||||||
|
Loading…
Reference in New Issue
Block a user