--- origsrc/gettext-runtime/intl/libgnuintl.in.h 2022-10-09 14:08:36.000000000 -0600 +++ src/gettext-runtime/intl/libgnuintl.in.h 2022-10-29 12:21:09.667333500 -0600 @@ -562,7 +562,7 @@ extern char *setlocale (int, const char # endif # endif -# if @HAVE_NEWLOCALE@ +# if @HAVE_NEWLOCALE@ && __POSIX_VISIBLE >= 200809 # undef newlocale # define newlocale libintl_newlocale