Index: lib/cpp/src/thrift/transport/TSocket.cpp
--- lib/cpp/src/thrift/transport/TSocket.cpp.orig	2024-03-18 21:28:38.000000000 +0100
+++ lib/cpp/src/thrift/transport/TSocket.cpp	2025-07-26 23:06:31.817074000 +0200
@@ -460,8 +460,10 @@
   if (
 #ifdef _WIN32
       error == WSANO_DATA
-#else
+#elif defined(EAI_NODATA)
       error == EAI_NODATA
+#else
+      false
 #endif
     ) {
     hints.ai_flags &= ~AI_ADDRCONFIG;
