diff options
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r-- | lib/mprintf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c index 2b1356af7..a323bf554 100644 --- a/lib/mprintf.c +++ b/lib/mprintf.c @@ -38,6 +38,8 @@ #include <ctype.h> #include <string.h> +#include <curl/curl.h> /* for the curl_off_t type */ + #ifndef SIZEOF_LONG_DOUBLE #define SIZEOF_LONG_DOUBLE 0 #endif @@ -377,9 +379,10 @@ static int dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, va_list a flags |= FLAGS_LONG; break; case 'O': - if (sizeof(off_t) > sizeof(unsigned long int)) { + if (sizeof(curl_off_t) > sizeof(unsigned long int)) { flags |= FLAGS_LONGLONG; - } else if (sizeof(off_t) > sizeof(unsigned int)) { + } + else if (sizeof(curl_off_t) > sizeof(unsigned int)) { flags |= FLAGS_LONG; } break; |