diff options
author | fanquake <fanquake@gmail.com> | 2021-05-26 11:02:45 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-05-26 11:07:47 +0800 |
commit | 1be6267ce1ee142c3b90baed1925a82eab6514aa (patch) | |
tree | 780f64068692131cfdd6714105b7425c5b2e6746 /src/test/fuzz/util.h | |
parent | 3ad1b8899bfbf87ca4f06c20e8285bc8be31bbe8 (diff) |
fuzz: don't try and use fopencookie when building for Android
When building for Android, _GNU_SOURCE will be defined, but it doesn't
actually have the fopencookie() function, or define the
cookie_io_functions_t type.
For now just skip trying to use it if we are building for Android.
Should fix #22062.
Diffstat (limited to 'src/test/fuzz/util.h')
-rw-r--r-- | src/test/fuzz/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h index 48b7877896..86b203c6b5 100644 --- a/src/test/fuzz/util.h +++ b/src/test/fuzz/util.h @@ -384,7 +384,7 @@ public: [&] { mode = "a+"; }); -#ifdef _GNU_SOURCE +#if defined _GNU_SOURCE && !defined __ANDROID__ const cookie_io_functions_t io_hooks = { FuzzedFileProvider::read, FuzzedFileProvider::write, |