Skip to content

Commit 1be6267

Browse files
committed
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.
1 parent 3ad1b88 commit 1be6267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/fuzz/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ class FuzzedFileProvider
384384
[&] {
385385
mode = "a+";
386386
});
387-
#ifdef _GNU_SOURCE
387+
#if defined _GNU_SOURCE && !defined __ANDROID__
388388
const cookie_io_functions_t io_hooks = {
389389
FuzzedFileProvider::read,
390390
FuzzedFileProvider::write,

0 commit comments

Comments
 (0)