diff options
Diffstat (limited to 'src/arm')
-rw-r--r-- | src/arm/cpu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arm/cpu.c b/src/arm/cpu.c index e6c461a..b7a0d3a 100644 --- a/src/arm/cpu.c +++ b/src/arm/cpu.c @@ -66,7 +66,10 @@ static unsigned parse_proc_cpuinfo(const char *flag) { // if line is incomplete seek back to avoid splitting the search // string into two buffers if (!strchr(line, '\n') && strlen(line) > strlen(flag)) { - if (fseeko(file, -strlen(flag), SEEK_CUR)) + // use fseek since the 64 bit fseeko is only available since + // Android API level 24 and meson defines _FILE_OFFSET_BITS + // by default 64 + if (fseek(file, -strlen(flag), SEEK_CUR)) break; } } |