From a7577d7ee167dc7dfeeeb1347047f38b8d19f353 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 28 Feb 2013 14:30:56 -0600 Subject: [PATCH] FS-5048 trivial build for windows --- src/mod/applications/mod_curl/mod_curl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_curl/mod_curl.c b/src/mod/applications/mod_curl/mod_curl.c index b1a5cb0393..b68af2276b 100644 --- a/src/mod/applications/mod_curl/mod_curl.c +++ b/src/mod/applications/mod_curl/mod_curl.c @@ -33,7 +33,12 @@ #include #include #include +#ifdef _MSC_VER +#include +#else #include +#endif + /* Prototypes */ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_curl_shutdown); @@ -287,6 +292,7 @@ static size_t http_sendfile_response_callback(void *ptr, size_t size, size_t nme // This function and do_lookup_url functions could possibly be merged together. Or at least have do_lookup_url call this up as part of the initialization routine as it is a subset of the operations. static void http_sendfile_initialize_curl(http_sendfile_data_t *http_data) { + uint8_t count; http_data->curl_handle = curl_easy_init(); if (!strncasecmp(http_data->url, "https", 5)) @@ -329,7 +335,7 @@ static void http_sendfile_initialize_curl(http_sendfile_data_t *http_data) argc = switch_separate_string(temp_extrapost, '&', argv, (sizeof(argv) / sizeof(argv[0]))); - for(uint8_t count = 0; count < argc; count++) + for(count = 0; count < argc; count++) { char *argv2[4] = { 0 }; uint32_t argc2 = switch_separate_string(argv[count], '=', argv2, (sizeof(argv2) / sizeof(argv2[0])));