libgit2/libgit2 — pull request #1796 by ethomson (2013-08-19 16:03:41+00:00)
Title: Fix p_inet_pton on windows

`p_inet_pton` on Windows should set `errno` properly for callers.
Rewrite `p_inet_pton` to handle error cases correctly and add
test cases to exercise this function.