The following patch fixes the compilation of libcody/resolver.cc on hppa*-*-hpux11.11. I believe fstatat was introduced in POSIX 2008.
Okay? Regards, Dave Fix libcody build on hppa*-*-hpux11.11. libcody/ChangeLog: * resolver.cc: Only use fstatat when _POSIX_C_SOURCE >= 200809L. diff --git a/libcody/resolver.cc b/libcody/resolver.cc index b83880f341e..93997433f15 100644 --- a/libcody/resolver.cc +++ b/libcody/resolver.cc @@ -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))