]> granicus.if.org Git - curl/commitdiff
curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX
authorDimitrios Apostolou <jimis@northern.tech>
Thu, 21 Dec 2017 17:09:45 +0000 (18:09 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 22 Dec 2017 08:04:36 +0000 (03:04 -0500)
Closes https://github.com/curl/curl/pull/2186

include/curl/system.h

index 39dae754cdb31eda68870b92d1c50e1819725d4a..c49971bf6b48cedd80cb2649c08bd432a3d1008b 100644 (file)
    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"