gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r28428 - libmicrohttpd/src/testcurl


From: gnunet
Subject: [GNUnet-SVN] r28428 - libmicrohttpd/src/testcurl
Date: Wed, 7 Aug 2013 08:45:09 +0200

Author: grothoff
Date: 2013-08-07 08:45:09 +0200 (Wed, 07 Aug 2013)
New Revision: 28428

Modified:
   libmicrohttpd/src/testcurl/test_options.c
Log:
The inet_pton() call is only supported in Vista and above. Add define to 
declare we are compiling for Vista. 


Modified: libmicrohttpd/src/testcurl/test_options.c
===================================================================
--- libmicrohttpd/src/testcurl/test_options.c   2013-08-07 06:41:45 UTC (rev 
28427)
+++ libmicrohttpd/src/testcurl/test_options.c   2013-08-07 06:45:09 UTC (rev 
28428)
@@ -19,14 +19,22 @@
  */
 
 /**
- * @file mhds_get_test.c
+ * @file test_options.c
  * @brief  Testcase for libmicrohttpd HTTPS GET operations
  * @author Sagie Amir
  */
-
 #include "platform.h"
 #include "microhttpd.h"
 
+/* inet_pton requires Vista, add defines to declare that we
+   are compiling for Vista */
+#if (defined(__MINGW64__) || defined(__MINGW32__))
+#ifndef _WIN32_WINNT
+#define _WIN32_WINNT 0x0600
+#endif
+#endif
+
+
 #define MHD_E_MEM "Error: memory error\n"
 #define MHD_E_SERVER_INIT "Error: failed to start server\n"
 




reply via email to

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