summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-08 21:21:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-08-08 21:21:37 (GMT)
commit172b811322e30ecb3cd660319890e41bc40006bc (patch)
tree69c96d5ea70cc4d53dbecee794cb8a09dfad449f /compat/mingw.h
parentaa9136a87e3ce299fe966da4686a571d6a528311 (diff)
parentfab60274800efba101b3f08a297639d14ecbf840 (diff)
downloadgit-172b811322e30ecb3cd660319890e41bc40006bc.zip
git-172b811322e30ecb3cd660319890e41bc40006bc.tar.gz
git-172b811322e30ecb3cd660319890e41bc40006bc.tar.bz2
Merge branch 'ew/daemon-socket-keepalive' into maint
Recent update to "git daemon" tries to enable the socket-level KEEPALIVE, but when it is spawned via inetd, the standard input file descriptor may not necessarily be connected to a socket. Suppress an ENOTSOCK error from setsockopt(). * ew/daemon-socket-keepalive: Windows: add missing definition of ENOTSOCK daemon: ignore ENOTSOCK from setsockopt
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 9a8803b..ef22cbb 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;