From: Randall S. Becker Date: Thu, 27 Oct 2022 19:43:05 +0000 (-0500) Subject: system.h: support 64-bit curl_off_t for NonStop 32-bit X-Git-Tag: curl-7_87_0~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e5228533534ece2e1475a9d05ad86c479ad6c94;p=thirdparty%2Fcurl.git system.h: support 64-bit curl_off_t for NonStop 32-bit - Correctly define curl_off_t on NonStop (ie __TANDEM) ia64 and x86 for 32-bit builds. Signed-off-by: Randall S. Becker Closes https://github.com/curl/curl/pull/9817 --- diff --git a/include/curl/system.h b/include/curl/system.h index 8d56b8a4a1..df69d4f7dd 100644 --- a/include/curl/system.h +++ b/include/curl/system.h @@ -172,6 +172,17 @@ # define CURL_SUFFIX_CURL_OFF_TU ULL # define CURL_TYPEOF_CURL_SOCKLEN_T int +#elif defined(__TANDEM) +# if ! defined(__LP64) + /* Required for 32-bit NonStop builds only. */ +# define CURL_TYPEOF_CURL_OFF_T long long +# define CURL_FORMAT_CURL_OFF_T "lld" +# define CURL_FORMAT_CURL_OFF_TU "llu" +# define CURL_SUFFIX_CURL_OFF_T LL +# define CURL_SUFFIX_CURL_OFF_TU ULL +# define CURL_TYPEOF_CURL_SOCKLEN_T int +# endif + #elif defined(_WIN32_WCE) # define CURL_TYPEOF_CURL_OFF_T __int64 # define CURL_FORMAT_CURL_OFF_T "I64d"