--- a/Modules/socketmodule.c Tue Dec 6 20:05:27 2022 +++ b/Modules/socketmodule.c Thu Feb 2 22:07:31 2023 @@ -232,6 +232,7 @@ /* Solaris fails to define this variable at all. */ #if (defined(__sun) && defined(__SVR4)) && !defined(INET_ADDRSTRLEN) #define INET_ADDRSTRLEN 16 +#undef HAVE_HSTRERROR #endif /* Generic includes */