From: Dimitrios Apostolou Date: Thu, 21 Dec 2017 17:09:45 +0000 (+0100) Subject: curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX X-Git-Tag: curl-7_58_0~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c97648b55080343bb371522bf4233e94a2a13a99;p=thirdparty%2Fcurl.git curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX Closes https://github.com/curl/curl/pull/2186 --- diff --git a/include/curl/system.h b/include/curl/system.h index 39dae754cd..c49971bf6b 100644 --- a/include/curl/system.h +++ b/include/curl/system.h @@ -348,7 +348,8 @@ defined(__ppc__) || defined(__powerpc__) || defined(__arm__) || \ defined(__sparc__) || defined(__mips__) || defined(__sh__) || \ defined(__XTENSA__) || \ - (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4)) + (defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ == 4) || \ + (defined(SIZEOF_LONG) && SIZEOF_LONG == 4)) # define CURL_TYPEOF_CURL_OFF_T long long # define CURL_FORMAT_CURL_OFF_T "lld" # define CURL_FORMAT_CURL_OFF_TU "llu"