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:
John David Anglin 2021-01-06 13:58:56 +00:00
parent 758abf1ae3
commit 6d0b075d66
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#if (defined (__unix__) \
#if ((defined (__unix__) \
&& defined _POSIX_C_SOURCE \
&& (_POSIX_C_SOURCE - 0) >= 200809L) \
|| (defined (__Apple__) \
&& defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) \
&& __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000))