[vlc-devel] [PACTH 3.0 09/21] contrib: gnutls: ntop is available on Winstore builds but not via arpa/inet.h

Steve Lhomme robux4 at ycbcr.xyz
Mon Jun 22 09:02:49 CEST 2020


(cherry picked from commit a252d4d3f2c312a636c89806c0645c3124ebab7c)

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
---
 contrib/src/gnutls/gnutls-winstore-ntop.patch | 13 +++++++++++++
 contrib/src/gnutls/rules.mak                  |  1 +
 2 files changed, 14 insertions(+)
 create mode 100644 contrib/src/gnutls/gnutls-winstore-ntop.patch

diff --git a/contrib/src/gnutls/gnutls-winstore-ntop.patch b/contrib/src/gnutls/gnutls-winstore-ntop.patch
new file mode 100644
index 0000000000..86cd72c0ad
--- /dev/null
+++ b/contrib/src/gnutls/gnutls-winstore-ntop.patch
@@ -0,0 +1,13 @@
+--- gnutls/lib/x509/ip.c.ntop_win32	2019-03-05 11:21:25.250954200 +0100
++++ gnutls/lib/x509/ip.c	2019-03-05 11:21:31.651380300 +0100
+@@ -26,8 +26,10 @@
+ #include <gnutls/x509.h>
+ 
+ #ifdef HAVE_INET_NTOP
++#ifndef _WIN32
+ # include <arpa/inet.h>
+ #endif
++#endif
+ 
+ /*-
+  * _gnutls_mask_to_prefix:
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
index b342645d86..bec18cfe80 100644
--- a/contrib/src/gnutls/rules.mak
+++ b/contrib/src/gnutls/rules.mak
@@ -22,6 +22,7 @@ gnutls: gnutls-$(GNUTLS_VERSION).tar.xz .sum-gnutls
 	$(APPLY) $(SRC)/gnutls/gnutls-pkgconfig-static.patch
 ifdef HAVE_WIN32
 	$(APPLY) $(SRC)/gnutls/gnutls-win32.patch
+	$(APPLY) $(SRC)/gnutls/gnutls-winstore-ntop.patch
 endif
 ifdef HAVE_ANDROID
 	$(APPLY) $(SRC)/gnutls/no-create-time-h.patch
-- 
2.26.2



More information about the vlc-devel mailing list