author | Martin Storsjö <martin@martin.st> | |
Mon, 23 Nov 2009 22:55:12 +0000 (00:55 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 24 Nov 2009 08:57:39 +0000 (00:57 -0800) | ||
commit | b7cc9f82594a2d5fe12867c515d86d91ecedad8f | |
tree | eecc9024254902cb3c6030d5d8a382afc9b8cfc4 | tree | snapshot |
parent | 1fdffa616119aeb607e211a77688c9bc3883ca87 | commit | diff |
Refactor winsock initialization into a separate function
The winsock library must be initialized. Since gethostbyname() is the
first function that calls into winsock, it was overridden to do the
initialization. This refactoring helps the next patch, where other
functions can be called earlier.
Signed-off-by: Martin Storsjo <martin@martin.st>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The winsock library must be initialized. Since gethostbyname() is the
first function that calls into winsock, it was overridden to do the
initialization. This refactoring helps the next patch, where other
functions can be called earlier.
Signed-off-by: Martin Storsjo <martin@martin.st>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c | diff | blob | history |