mirror of
https://github.com/python/cpython.git
synced 2025-09-02 15:07:53 +00:00
Bug #1001857: socketmodule does not build under cygwin
Restore clean building under Cygwin.
This commit is contained in:
parent
356fd19c31
commit
c246cb76e6
1 changed files with 4 additions and 0 deletions
|
@ -286,6 +286,10 @@ int h_errno; /* not used */
|
|||
#include "addrinfo.h"
|
||||
#endif
|
||||
|
||||
#if defined(__CYGWIN__)
|
||||
#include "addrinfo.h"
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_INET_PTON
|
||||
int inet_pton(int af, const char *src, void *dst);
|
||||
const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue