summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2016-07-21 20:59:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-07-22 19:28:24 (GMT)
commitfab60274800efba101b3f08a297639d14ecbf840 (patch)
tree689e6da62e5c187c16e1c058f63c71d5a7225e50 /compat
parent49c58d86ceb7816c5f0ca36e38e26cd6b8506d74 (diff)
downloadgit-fab60274800efba101b3f08a297639d14ecbf840.zip
git-fab60274800efba101b3f08a297639d14ecbf840.tar.gz
git-fab60274800efba101b3f08a297639d14ecbf840.tar.bz2
Windows: add missing definition of ENOTSOCK
The previous commit introduced the first use of ENOTSOCK. This macro is not available on Windows. Define it as WSAENOTSOCK because that is the corresponding error value reported by the Windows versions of socket functions. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index c008694..7489d29 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -73,6 +73,9 @@ typedef int pid_t;
#ifndef ECONNABORTED
#define ECONNABORTED WSAECONNABORTED
#endif
+#ifndef ENOTSOCK
+#define ENOTSOCK WSAENOTSOCK
+#endif
struct passwd {
char *pw_name;