From 1be6267ce1ee142c3b90baed1925a82eab6514aa Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 26 May 2021 11:02:45 +0800 Subject: [PATCH] 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. --- src/test/fuzz/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/fuzz/util.h b/src/test/fuzz/util.h index 48b78778963..86b203c6b53 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,