From d8ee927be2883dcb3ebca3b75a9955c789f9e52e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 23 Jan 2004 07:41:05 +0000 Subject: [PATCH] define SIZEOF_CURL_OFF_T if not already defined --- lib/setup.h | 4 ++++ src/setup.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/lib/setup.h b/lib/setup.h index 36e4c7f14..1d78dc6d2 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -244,4 +244,8 @@ typedef struct hostent Curl_addrinfo; typedef struct in_addr Curl_ipconnect; #endif +#ifndef SIZEOF_CURL_OFF_T +#define SIZEOF_CURL_OFF_T sizeof(curl_off_t) +#endif + #endif /* __CONFIG_H */ diff --git a/src/setup.h b/src/setup.h index 7e8428d70..340a46a4b 100644 --- a/src/setup.h +++ b/src/setup.h @@ -112,4 +112,8 @@ int fileno( FILE *stream); #define typedef_bool #endif +#ifndef SIZEOF_CURL_OFF_T +#define SIZEOF_CURL_OFF_T sizeof(curl_off_t) +#endif + #endif /* __SETUP_H */