aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanie sappho lenzo <sappho@sappho.io>2023-12-05 13:21:07 -0500
committerstephanie sappho lenzo <sappho@sappho.io>2023-12-05 13:21:07 -0500
commit26dbc7e9208fcc91530d94ad8389953e147d7e6e (patch)
tree75061f64aa336a3c6e627b679f45b7046da875a4
parent5b8ccab94f8b5347a2b39a9a09e5c07cf84280f4 (diff)
more windows compile fixes
-rw-r--r--extension/curlmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/extension/curlmanager.cpp b/extension/curlmanager.cpp
index 973d133..6a64c10 100644
--- a/extension/curlmanager.cpp
+++ b/extension/curlmanager.cpp
@@ -19,13 +19,15 @@ struct data_t {
size_t nmemb;
size_t return_value;
};
-
+#include <io.h>
/* Write Function */
static size_t curl_write_function_default(void *ptr, size_t bytes, size_t nmemb, void *stream)
{
FILE *file = (FILE *)stream;
#ifdef WIN32
- if(file->_file >= 3)
+ //if(file->_file >= 3)
+
+ if ( _filelength(_fileno(file)) >= 3 )
#else
if(file->_fileno >= 3)
#endif