Define correct `off64_t` for AIX
off64_t is long long on AIX, see /usr/include/sys/types.h on AIX.
Does AIX not define int64_t? I would have expected the final else would have sufficed here, especially since we use int64_t in a lot of other places. 🤔
Does AIX not define int64_t?
Actually, it does. It defines
#ifdef __64BIT__
typedef signed long int64_t;
However, it also defines typedef long long off64_t in its sys/types.h which is included by some c headers on AIX. If fallback to typedef int64_t off64_t on AIX, we will define off64_t more than one time and the underlying type of off64_t is inconsistent between src/util/posix.h and AIX's <sys/types.h>(signed long vs long long).
Thanks for the fix!