summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2016-07-21 22:59:06 +0200
committerJunio C Hamano <gitster@pobox.com>2016-07-22 21:28:24 +0200
commitfab60274800efba101b3f08a297639d14ecbf840 (patch)
tree689e6da62e5c187c16e1c058f63c71d5a7225e50 /compat
parentdaemon: ignore ENOTSOCK from setsockopt (diff)
downloadgit-fab60274800efba101b3f08a297639d14ecbf840.tar.xz
git-fab60274800efba101b3f08a297639d14ecbf840.zip
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 c008694639..7489d2980e 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;