diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-08-29 23:30:59 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2016-08-29 23:30:59 +0300 |
commit | 3d3ab829689f2563cfbfb65ce440cff8299a4ae9 (patch) | |
tree | c82ef7acc3c7962b9456626260b25468d65a74d9 /newlib | |
parent | de8b81950dcf0418f5412cfeab7bd6950c296905 (diff) |
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 477463a2011ba81907a753df9ce7a71b6563db54.
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>
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/sys/_types.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h index 4bf2bc460..98b93ce71 100644 --- a/newlib/libc/include/sys/_types.h +++ b/newlib/libc/include/sys/_types.h @@ -94,7 +94,7 @@ typedef __uint32_t __mode_t; __extension__ typedef long long _off64_t; #endif -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) && !defined(__LP64__) typedef _off64_t __off_t; #else typedef _off_t __off_t; |