commit 6d7d5bf7847634a7906e379e08907ec7e2b5f920
parent a0b627adc5ff0abe12c35095faf4ff8a8ae11e30
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 7 Aug 2013 06:45:09 +0000
The inet_pton() call is only supported in Vista and above. Add define to declare we are compiling for Vista.
Diffstat:
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/testcurl/test_options.c b/src/testcurl/test_options.c
@@ -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"