Skip to content

Commit

Permalink
configure.ac: fix inet_pton check
Browse files Browse the repository at this point in the history
Co-authored-by: Алексей <[email protected]>
  • Loading branch information
lazka and Alexpux committed Aug 25, 2023
1 parent f714542 commit 3e21c4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5079,10 +5079,14 @@ PY_CHECK_NETDB_FUNC([getprotobyname])

dnl PY_CHECK_SOCKET_FUNC(FUNCTION)
AC_DEFUN([PY_CHECK_SOCKET_FUNC], [PY_CHECK_FUNC([$1], [
#ifdef _WIN32
#include <ws2tcpip.h>
#else
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
])])

PY_CHECK_SOCKET_FUNC([inet_aton])
Expand Down

0 comments on commit 3e21c4c

Please sign in to comment.