Fix off_t typedef on Cygwin64

While both long and long long are 64-bits on x86_64, they are distinct types,
and long was used prior to commit 477463a201.
Changing this breaks the linking of previously compiled C++ functions with
off_t arguments on 64-bit Cygwin with newly compiled code, as the mangling of
long (l) and long long (x) differ.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
Yaakov Selkowitz 2016-08-29 15:30:59 -05:00
parent de8b81950d
commit 3d3ab82968
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ typedef __uint32_t __mode_t;
__extension__ typedef long long _off64_t; __extension__ typedef long long _off64_t;
#endif #endif
#ifdef __CYGWIN__ #if defined(__CYGWIN__) && !defined(__LP64__)
typedef _off64_t __off_t; typedef _off64_t __off_t;
#else #else
typedef _off_t __off_t; typedef _off_t __off_t;