Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/arm
diff options
context:
space:
mode:
authorJanne Grunau <janne-vlc@jannau.net>2020-03-21 13:07:53 +0300
committerJanne Grunau <janne-vlc@jannau.net>2020-03-21 13:30:13 +0300
commite8e92d358d57add6ec20b5921df99e5a7bac0210 (patch)
tree75c94dcb7decb8cd057772b36bd308403d635241 /src/arm
parentfe52bffeebb76b24e948f79de9fcd99cd7071ee5 (diff)
android/arm: do not use fseeko in library code
Availability is sketchy if _FILE_OFFSET_BITS is defined to 64 which meson does by default. See https://android.googlesource.com/platform/bionic/+/master/docs/32-bit-abi.md#32_bit-and
Diffstat (limited to 'src/arm')
-rw-r--r--src/arm/cpu.c5
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;
}
}