summarylogtreecommitdiffstats
path: root/0081-configure-have-inet-pton.patch
diff options
context:
space:
mode:
authoratomlong2021-08-28 11:19:04 +0800
committeratomlong2021-08-28 13:15:13 +0800
commit89a67c05174951d172252b1db96ff93cc4ec4bcd (patch)
treed8c39fa79b201cf9aea28c51e7446a252ed8fee4 /0081-configure-have-inet-pton.patch
parentcf8d8d8771493a2aa8370ed323d06dc733a84181 (diff)
downloadaur-89a67c05174951d172252b1db96ff93cc4ec4bcd.tar.gz
Update to 3.9.6
Diffstat (limited to '0081-configure-have-inet-pton.patch')
-rw-r--r--0081-configure-have-inet-pton.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/0081-configure-have-inet-pton.patch b/0081-configure-have-inet-pton.patch
new file mode 100644
index 000000000000..a233867adcba
--- /dev/null
+++ b/0081-configure-have-inet-pton.patch
@@ -0,0 +1,35 @@
+From a59150eaa982d06c28e04305056e6064de57bcd0 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 081/N] configure have inet pton
+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 cea888c..fb15812 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -4273,10 +4273,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.32.0
+