FIO: Properly configure large file support for different Android versions

This commit is contained in:
Mark Pizzolato 2018-05-09 11:08:53 -07:00
parent 39802c465a
commit 0aa4264261
2 changed files with 4 additions and 1 deletions

View file

@ -324,7 +324,7 @@ return (t_offset)fileaddr;
/* Linux */
#if ((defined (__linux) || defined (__linux__)) && (!defined (__ANDROID_API__) || (__ANDROID_API__ >= 24))) || defined (__hpux) || defined (_AIX)
#if defined (__linux) || defined (__linux__) || defined (__hpux) || defined (_AIX)
#define S_SIM_IO_FSEEK_EXT_ 1
int sim_fseeko (FILE *st, t_offset xpos, int origin)
{

View file

@ -41,6 +41,9 @@ extern "C" {
#define fxread(a,b,c,d) sim_fread (a, b, c, d)
#define fxwrite(a,b,c,d) sim_fwrite (a, b, c, d)
#if ((defined (__linus) || defined (__linus__)) && (!defined (__ANDROID_API__) || (__ANDROID_API__ < 24)))
#define DONT_DO_LARGEFILE 1
#endif
int32 sim_finit (void);
#if (defined (__linux) || defined (__linux__) || defined (__hpux) || defined (_AIX) || \
(defined (VMS) && (defined (__ALPHA) || defined (__ia64)) && (__DECC_VER >= 60590001)) || \