[gnutls-devel] [patch]: windows build fix: ws2tcpip.h supplies inet_ntop

Mark Brand mabrand at mabrand.nl
Mon Nov 24 09:07:03 CET 2014


Small build fix for gnutls_3_3_x branch.

commit 6e239fdb653f89f9324ec6e3f00052e8a5641557
Author: Mark Brand <mabrand at mabrand.nl>
Date:   Mon Nov 24 08:56:48 2014 +0100

     windows build fix: ws2tcpip.h supplies inet_ntop

     Follow-up to 492c2b937ab66134d0b37499a6f3a747e19bc31a

     Signed-off-by: Mark Brand <mabrand at mabrand.nl>

diff --git a/lib/x509/output.c b/lib/x509/output.c
index bf01834..1ec18de 100644
--- a/lib/x509/output.c
+++ b/lib/x509/output.c
@@ -32,7 +32,11 @@
  #include <extras/randomart.h>

  #ifdef HAVE_INET_NTOP
-# include <arpa/inet.h>
+# ifdef _WIN32
+#  include <ws2tcpip.h>
+# else
+#  include <arpa/inet.h>
+# endif
  #endif

  #define addf _gnutls_buffer_append_printf





More information about the Gnutls-devel mailing list