diff options
author | atomlong | 2021-10-23 17:55:22 +0800 |
---|---|---|
committer | atomlong | 2021-10-23 18:06:15 +0800 |
commit | 80096c8de4b34ec1ed8f30bb428918cd592b2424 (patch) | |
tree | b48dd1e73de9ea35a4709fb6b93deb16331ec514 /0069-configure.ac-fix-inet_pton-check.patch | |
parent | 89a67c05174951d172252b1db96ff93cc4ec4bcd (diff) | |
download | aur-mingw-w64-python.tar.gz |
update to 3.9.7
Diffstat (limited to '0069-configure.ac-fix-inet_pton-check.patch')
-rw-r--r-- | 0069-configure.ac-fix-inet_pton-check.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/0069-configure.ac-fix-inet_pton-check.patch b/0069-configure.ac-fix-inet_pton-check.patch new file mode 100644 index 000000000000..6caa8692c86c --- /dev/null +++ b/0069-configure.ac-fix-inet_pton-check.patch @@ -0,0 +1,35 @@ +From e76cda7b6d05184ac17991dc46a568c42763a94a Mon Sep 17 00:00:00 2001 +From: Christoph Reiter <reiter.christoph@gmail.com> +Date: Thu, 17 Jun 2021 18:52:23 +0530 +Subject: [PATCH 069/N] configure.ac: fix inet_pton check +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Co-authored-by: Алексей <alexey.pawlow@gmail.com> +--- + configure.ac | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/configure.ac b/configure.ac +index be8ede9..032d658 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -4274,10 +4274,14 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ + + AC_MSG_CHECKING(for inet_pton) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ ++#ifdef _WIN32 ++#include <ws2tcpip.h> ++#else + #include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + #include <arpa/inet.h> ++#endif + ]], [[void* p = inet_pton]])], + [AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.) + AC_MSG_RESULT(yes)], +-- +2.33.0 + |