aboutsummaryrefslogtreecommitdiffstats
path: root/src/curl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/curl.h')
-rw-r--r--src/curl.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/curl.h b/src/curl.h
index 70c44f1..11ecc8d 100644
--- a/src/curl.h
+++ b/src/curl.h
@@ -18,11 +18,18 @@
#define SLAPT_NO_SSL_VERIFYPEER "SLAPT_NO_SSL_VERIFYPEER"
+#include <curl/curl.h>
+#ifdef CURLINFO_FILETIME_T
+ typedef curl_off_t SLAPT_DOWNLOAD_FILE_TIME_T;
+#else
+ typedef long SLAPT_DOWNLOAD_FILE_TIME_T;
+#endif
+
/*
download data to file, resuming from bytes and preserving filetime.
returns curl code
*/
-int slapt_download_data(FILE *fh, const char *url, size_t bytes, long *filetime,
+int slapt_download_data(FILE *fh, const char *url, size_t bytes, SLAPT_DOWNLOAD_FILE_TIME_T *filetime,
const slapt_rc_config *global_config);
/*