Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c246cb7

Browse files
committed
Bug #1001857: socketmodule does not build under cygwin
Restore clean building under Cygwin.
1 parent 356fd19 commit c246cb7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/socketmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ int h_errno; /* not used */
286286
#include "addrinfo.h"
287287
#endif
288288

289+
#if defined(__CYGWIN__)
290+
#include "addrinfo.h"
291+
#endif
292+
289293
#ifndef HAVE_INET_PTON
290294
int inet_pton(int af, const char *src, void *dst);
291295
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);

0 commit comments

Comments
 (0)