Code

Improve the mingw getaddrinfo stub to handle more use cases
[git.git] / git-compat-util.h
index e192831961cb50b6e1421773e74dcd70fb2dce97..56dce8588472e8535c1482ed21818f413abb4dbf 100644 (file)
@@ -387,6 +387,14 @@ static inline void *gitmempcpy(void *dest, const void *src, size_t n)
 }
 #endif
 
+#ifdef NO_INET_PTON
+int inet_pton(int af, const char *src, void *dst);
+#endif
+
+#ifdef NO_INET_NTOP
+const char *inet_ntop(int af, const void *src, char *dst, size_t size);
+#endif
+
 extern void release_pack_memory(size_t, int);
 
 typedef void (*try_to_free_t)(size_t);