Skip to content

Commit

Permalink
fuzz: don't try and use fopencookie when building for Android
Browse files Browse the repository at this point in the history
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 bitcoin#22062.
  • Loading branch information
fanquake authored and rebroad committed Jun 22, 2021
1 parent 30a60e0 commit 146d378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/fuzz/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ class FuzzedFileProvider
[&] {
mode = "a+";
});
#ifdef _GNU_SOURCE
#if defined _GNU_SOURCE && !defined __ANDROID__
const cookie_io_functions_t io_hooks = {
FuzzedFileProvider::read,
FuzzedFileProvider::write,
Expand Down

0 comments on commit 146d378

Please sign in to comment.