diff options
| author | Eduardo Bart <edub4rt@gmail.com> | 2012-11-06 20:16:53 -0200 |
|---|---|---|
| committer | Eduardo Bart <edub4rt@gmail.com> | 2012-11-06 20:22:11 -0200 |
| commit | d1a69d0fff03dcd4326adb63aee6464be0cad83f (patch) | |
| tree | d6fb572817dff805637f10a6b4fa961ace0a0dcc /src/netops.h | |
| parent | 8a85378829cb3bd417b04cd690da8d7d470b6214 (diff) | |
| download | libgit2-d1a69d0fff03dcd4326adb63aee6464be0cad83f.tar.gz | |
Fix compilation for mingw32 and cygwin
inet_pton is available only in windows vista or later,
fixed the issue by reimplementing it using WSAStringToAddress
Diffstat (limited to 'src/netops.h')
| -rw-r--r-- | src/netops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/netops.h b/src/netops.h index efbbc65a4..b2a793081 100644 --- a/src/netops.h +++ b/src/netops.h @@ -67,5 +67,6 @@ int gitno_close(gitno_socket *s); int gitno_select_in(gitno_buffer *buf, long int sec, long int usec); int gitno_extract_host_and_port(char **host, char **port, const char *url, const char *default_port); +int gitno_inet_pton(int af, const char *src, void *dst); #endif |
