Imported Upstream version 1.8.7
[debian/sudo] / compat / getaddrinfo.c
index 99275871383adc1e91f7a1af579e17535225d8f3..8a3dc3de3dee796b423cf273527212da033e4f4e 100644 (file)
@@ -32,6 +32,8 @@
 
 #include <config.h>
 
+#ifndef HAVE_GETADDRINFO
+
 #include <sys/types.h>
 #include <sys/socket.h>
 
@@ -436,3 +438,4 @@ getaddrinfo(const char *nodename, const char *servname,
         return 0;
     }
 }
+#endif /* HAVE_GETADDRINFO */