https://gitlab.freedesktop.org/spice/usbredir/-/merge_requests/70

diff --git usbredirtestclient/usbredirtestclient.c usbredirtestclient/usbredirtestclient.c
index 28392db..62b72e8 100644
--- usbredirtestclient/usbredirtestclient.c
+++ usbredirtestclient/usbredirtestclient.c
@@ -248,7 +248,10 @@ int main(int argc, char *argv[])
     sigaction(SIGQUIT, &act, NULL);
 
     memset(&hints, 0, sizeof(hints));
-    hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV;
+    hints.ai_flags = AI_ADDRCONFIG;
+#ifdef  AI_NUMERICSERV
+    hints.ai_flags |= AI_NUMERICSERV;
+#endif
     hints.ai_family = AF_UNSPEC;
     hints.ai_socktype = SOCK_STREAM;
     hints.ai_protocol = IPPROTO_TCP;
