diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-02-04 14:45:11 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-02-04 15:14:16 -0800 |
commit | 04d97e76a96854a9a9f4778cb1202a87537731de (patch) | |
tree | 9c70da51ec099c2c1c0ca95dbace29190e563f8a /lib/stdio-impl.h | |
parent | 7e1c7db1cb5a33a66115bb767224bdc79a257266 (diff) | |
download | emacs-04d97e76a96854a9a9f4778cb1202a87537731de.tar.gz |
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/stdio-impl.h')
-rw-r--r-- | lib/stdio-impl.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/stdio-impl.h b/lib/stdio-impl.h index 81e7f838372..46608bed198 100644 --- a/lib/stdio-impl.h +++ b/lib/stdio-impl.h @@ -71,6 +71,12 @@ # else # define _gl_flags_file_t short # endif +# ifdef __LP64__ +# define _gl_file_offset_t int64_t +# else + /* see https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md */ +# define _gl_file_offset_t __kernel_off_t +# endif /* Up to this commit from 2015-10-12 <https://android.googlesource.com/platform/bionic.git/+/f0141dfab10a4b332769d52fa76631a64741297a> the innards of FILE were public, and fp_ub could be defined like for OpenBSD, @@ -96,7 +102,7 @@ unsigned char _nbuf[1]; \ struct { unsigned char *_base; size_t _size; } _lb; \ int _blksize; \ - fpos_t _offset; \ + _gl_file_offset_t _offset; \ /* More fields, not relevant here. */ \ } *) fp) # else |