diff options
author | Johannes Sixt <j6t@kdbg.org> | 2011-05-18 22:24:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-18 14:24:48 -0700 |
commit | a7941795b1eb720f3bf3df2f4c68d58dd0fba7e1 (patch) | |
tree | 48c07a875001d61d5904e6e16804e1309b036f1d /compat/mingw.h | |
parent | 4fec83045bdc53ed9d3ff71ed099e3e6992b5c56 (diff) | |
download | git-a7941795b1eb720f3bf3df2f4c68d58dd0fba7e1.tar.gz |
Windows: add a wrapper for the shutdown() system call
Even though Windows's socket functions look like their POSIX counter parts,
they do not operate on file descriptors, but on "socket objects". To bring
the functions in line with POSIX, we have proxy functions that wrap and
unwrap the socket objects in file descriptors using open_osfhandle and
get_osfhandle. But shutdown() was not proxied, yet. Fix this.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r-- | compat/mingw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index 14211c6214..3b20fa9799 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -219,6 +219,9 @@ int mingw_bind(int sockfd, struct sockaddr *sa, size_t sz); int mingw_setsockopt(int sockfd, int lvl, int optname, void *optval, int optlen); #define setsockopt mingw_setsockopt +int mingw_shutdown(int sockfd, int how); +#define shutdown mingw_shutdown + int mingw_listen(int sockfd, int backlog); #define listen mingw_listen |