gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 185/205: system.h: fix mingw section


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 185/205: system.h: fix mingw section
Date: Thu, 20 Apr 2017 16:22:05 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit f79913050dfa127a8a62b4d340bb5415b83f3725
Author: Daniel Stenberg <address@hidden>
AuthorDate: Tue Apr 11 13:45:56 2017 +0200

    system.h: fix mingw section
    
    Reported-by: Marcel Raad
    Fixes #1408
    Closes #1409
---
 include/curl/system.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/include/curl/system.h b/include/curl/system.h
index f4edc436d..ed3a55c95 100644
--- a/include/curl/system.h
+++ b/include/curl/system.h
@@ -243,8 +243,10 @@
 #  define CURLSYS_SIZEOF_CURL_OFF_T     8
 #  define CURLSYS_SUFFIX_CURL_OFF_T     LL
 #  define CURLSYS_SUFFIX_CURL_OFF_TU    ULL
-#  define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
+#  define CURLSYS_TYPEOF_CURL_SOCKLEN_T socklen_t
 #  define CURLSYS_SIZEOF_CURL_SOCKLEN_T 4
+#  define CURLSYS_PULL_SYS_TYPES_H      1
+#  define CURLSYS_PULL_WS2TCPIP_H       1
 
 #elif defined(__VMS)
 #  if defined(__VAX)
@@ -444,6 +446,17 @@
 # define CURLSYS_TYPEOF_CURL_SOCKLEN_T int
 #endif
 
+/* CURLSYS_PULL_WS2TCPIP_H is defined above when inclusion of header file  */
+/* ws2tcpip.h is required here to properly make type definitions below. */
+#ifdef CURLSYS_PULL_WS2TCPIP_H
+#  ifndef WIN32_LEAN_AND_MEAN
+#    define WIN32_LEAN_AND_MEAN
+#  endif
+#  include <windows.h>
+#  include <winsock2.h>
+#  include <ws2tcpip.h>
+#endif
+
 /* CURLSYS_PULL_SYS_TYPES_H is defined above when inclusion of header file  */
 /* sys/types.h is required here to properly make type definitions below. */
 #ifdef CURLSYS_PULL_SYS_TYPES_H

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]