diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-08-11 23:40:27 +0200 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-22 15:29:54 +0000 |
commit | af77407f1a098cf7187fbf7864fec1ba9d30c9c9 (patch) | |
tree | 33c13465c75c1c9c6a8b5fa1d0c36d9254fe2f1d | |
parent | 69a8d30f259a101d0031a953b484bf478b587ae6 (diff) | |
download | gnurl-af77407f1a098cf7187fbf7864fec1ba9d30c9c9.tar.gz gnurl-af77407f1a098cf7187fbf7864fec1ba9d30c9c9.tar.bz2 gnurl-af77407f1a098cf7187fbf7864fec1ba9d30c9c9.zip |
curl/system.h: add Oracle Solaris Studio
Fixes #1752
-rw-r--r-- | include/curl/system.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/curl/system.h b/include/curl/system.h index 0e13075f7..d418e4444 100644 --- a/include/curl/system.h +++ b/include/curl/system.h @@ -370,6 +370,31 @@ # define CURL_PULL_SYS_TYPES_H 1 # define CURL_PULL_SYS_SOCKET_H 1 +#elif defined(__SUNPRO_C) /* Oracle Solaris Studio */ +# if !defined(__LP64) && (defined(__ILP32) || \ + defined(__i386) || defined(__sparcv8)) +# define CURL_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" +# define CURL_SIZEOF_CURL_OFF_T 8 +# define CURL_SUFFIX_CURL_OFF_T LL +# define CURL_SUFFIX_CURL_OFF_TU ULL +# elif defined(__LP64) || \ + defined(__amd64) || defined(__sparcv9) +# define CURL_SIZEOF_LONG 8 +# define CURL_TYPEOF_CURL_OFF_T long +# define CURL_FORMAT_CURL_OFF_T "ld" +# define CURL_FORMAT_CURL_OFF_TU "lu" +# define CURL_SIZEOF_CURL_OFF_T 8 +# define CURL_SUFFIX_CURL_OFF_T L +# define CURL_SUFFIX_CURL_OFF_TU UL +# endif +# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t +# define CURL_SIZEOF_CURL_SOCKLEN_T 4 +# define CURL_PULL_SYS_TYPES_H 1 +# define CURL_PULL_SYS_SOCKET_H 1 + /* ===================================== */ /* KEEP MSVC THE PENULTIMATE ENTRY */ /* ===================================== */ @@ -520,4 +545,3 @@ #endif #endif /* __CURL_SYSTEM_H */ - |