diff options
Diffstat (limited to 'lib/stdio-impl.h')
| -rw-r--r-- | lib/stdio-impl.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/stdio-impl.h b/lib/stdio-impl.h index 393ef0cf58d..4260468b612 100644 --- a/lib/stdio-impl.h +++ b/lib/stdio-impl.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Implementation details of FILE streams. | 1 | /* Implementation details of FILE streams. |
| 2 | Copyright (C) 2007-2008, 2010-2018 Free Software Foundation, Inc. | 2 | Copyright (C) 2007-2008, 2010-2019 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This program is free software: you can redistribute it and/or modify | 4 | This program is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
| @@ -61,6 +61,11 @@ | |||
| 61 | # define _r pub._r | 61 | # define _r pub._r |
| 62 | # define _w pub._w | 62 | # define _w pub._w |
| 63 | # elif defined __ANDROID__ /* Android */ | 63 | # elif defined __ANDROID__ /* Android */ |
| 64 | # ifdef __LP64__ | ||
| 65 | # define _gl_flags_file_t int | ||
| 66 | # else | ||
| 67 | # define _gl_flags_file_t short | ||
| 68 | # endif | ||
| 64 | /* Up to this commit from 2015-10-12 | 69 | /* Up to this commit from 2015-10-12 |
| 65 | <https://android.googlesource.com/platform/bionic.git/+/f0141dfab10a4b332769d52fa76631a64741297a> | 70 | <https://android.googlesource.com/platform/bionic.git/+/f0141dfab10a4b332769d52fa76631a64741297a> |
| 66 | the innards of FILE were public, and fp_ub could be defined like for OpenBSD, | 71 | the innards of FILE were public, and fp_ub could be defined like for OpenBSD, |
| @@ -70,8 +75,8 @@ | |||
| 70 | # define fp_ ((struct { unsigned char *_p; \ | 75 | # define fp_ ((struct { unsigned char *_p; \ |
| 71 | int _r; \ | 76 | int _r; \ |
| 72 | int _w; \ | 77 | int _w; \ |
| 73 | int _flags; \ | 78 | _gl_flags_file_t _flags; \ |
| 74 | int _file; \ | 79 | _gl_flags_file_t _file; \ |
| 75 | struct { unsigned char *_base; size_t _size; } _bf; \ | 80 | struct { unsigned char *_base; size_t _size; } _bf; \ |
| 76 | int _lbfsize; \ | 81 | int _lbfsize; \ |
| 77 | void *_cookie; \ | 82 | void *_cookie; \ |