Skip to content

Commit fab6027

Browse files
j6tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 49c58d8 commit fab6027

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compat/mingw.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ typedef int pid_t;
7373
#ifndef ECONNABORTED
7474
#define ECONNABORTED WSAECONNABORTED
7575
#endif
76+
#ifndef ENOTSOCK
77+
#define ENOTSOCK WSAENOTSOCK
78+
#endif
7679

7780
struct passwd {
7881
char *pw_name;

0 commit comments

Comments
 (0)