Only refer to AI_NUMERICHOST if it is defined.
[rsync/rsync.git] / clientname.c
index 4f85dcf..53167df 100644 (file)
@@ -118,7 +118,9 @@ char *client_name(int fd)
 
                memset(&hint, 0, sizeof hint);
 
+#ifdef AI_NUMERICHOST
                hint.ai_flags = AI_NUMERICHOST;
+#endif
                hint.ai_socktype = SOCK_STREAM;
 
                if ((err = getaddrinfo(addr, NULL, &hint, &answer)) != 0) {