summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRandall S. Becker <rsbecker@nexbridge.com>2022-10-27 14:43:05 -0500
committerJay Satiro <raysatiro@yahoo.com>2022-10-27 16:55:44 -0400
commit1e5228533534ece2e1475a9d05ad86c479ad6c94 (patch)
tree9dd26029117a7ee5570d445f22316be8d21e5305 /include
parent19bfaca7cc09cb65ea75cb3ea49a4dffbc84d7af (diff)
downloadcurl-1e5228533534ece2e1475a9d05ad86c479ad6c94.tar.gz
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 <randall.becker@nexbridge.ca> Closes https://github.com/curl/curl/pull/9817
Diffstat (limited to 'include')
-rw-r--r--include/curl/system.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/curl/system.h b/include/curl/system.h
index 8d56b8a4a..df69d4f7d 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"