libgit2/libgit2 — pull request #1788 by ethomson (2013-08-16 18:36:17+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.