[vlc-commits] contrib: gnutls: ntop is available on Winstore builds but not via arpa/inet.h

Steve Lhomme git at videolan.org
Fri Jun 26 12:34:51 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar  5 11:27:17 2019 +0100| [741dda05b96ec5df866da3d77414866e79da9f70] | committer: Steve Lhomme

contrib: gnutls: ntop is available on Winstore builds but not via arpa/inet.h

(cherry picked from commit a252d4d3f2c312a636c89806c0645c3124ebab7c)

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=741dda05b96ec5df866da3d77414866e79da9f70
---

 contrib/src/gnutls/gnutls-winstore-ntop.patch | 13 +++++++++++++
 contrib/src/gnutls/rules.mak                  |  1 +
 2 files changed, 14 insertions(+)

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



More information about the vlc-commits mailing list