summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Luo <lkail@cn.ibm.com>2022-08-09 10:12:49 +0800
committerKai Luo <gluokai@gmail.com>2022-08-09 10:15:29 +0800
commite8ce8060f4552dccd4b561acc4e9783b526c7aed (patch)
tree29bd0f24dc3acb26722a561836d057134ca3555b
parent22f382539d78f69aa91721ad62bbd7229750a043 (diff)
downloadlibgit2-e8ce8060f4552dccd4b561acc4e9783b526c7aed.tar.gz
On AIX, `off64_t` is equivalent to `long long`.
See `/usr/include/sys/types.h` on AIX.
-rw-r--r--src/util/posix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/posix.h b/src/util/posix.h
index c8f8cd9d2..607aa9dce 100644
--- a/src/util/posix.h
+++ b/src/util/posix.h
@@ -104,6 +104,8 @@ typedef __int64 off64_t;
typedef __haiku_std_int64 off64_t;
#elif defined(__APPLE__)
typedef __int64_t off64_t;
+#elif defined(_AIX)
+typedef long long off64_t;
#else
typedef int64_t off64_t;
#endif