mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-04 18:45:52 +00:00
23 lines
783 B
Diff
23 lines
783 B
Diff
--- a/src/gl/stdio-impl.h
|
|
+++ b/src/gl/stdio-impl.h
|
|
@@ -68,8 +68,10 @@
|
|
# elif defined __ANDROID__ /* Android */
|
|
# ifdef __LP64__
|
|
# define _gl_flags_file_t int
|
|
+# define _gl_struct_file_off_t int64_t
|
|
# else
|
|
# define _gl_flags_file_t short
|
|
+# define _gl_struct_file_off_t __kernel_off_t
|
|
# endif
|
|
# ifdef __LP64__
|
|
# define _gl_file_offset_t int64_t
|
|
@@ -102,7 +104,7 @@
|
|
unsigned char _nbuf[1]; \
|
|
struct { unsigned char *_base; size_t _size; } _lb; \
|
|
int _blksize; \
|
|
- _gl_file_offset_t _offset; \
|
|
+ _gl_struct_file_off_t _offset; \
|
|
/* More fields, not relevant here. */ \
|
|
} *) fp)
|
|
# else
|