mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-06 14:19:59 -05:00
Merge bitcoin/bitcoin#29529: fuzz: restrict fopencookie usage to Linux & FreeBSD
312f3381a2
fuzz: restrict fopencookie usage to Linux & FreeBSD (fanquake) Pull request description: Should fix the GCC compilation portion of https://github.com/bitcoin/bitcoin/issues/29517#issuecomment-1973573314. See also: https://www.gnu.org/software/gnulib/manual/html_node/fopencookie.html. ACKs for top commit: m3dwards: ACK312f3381a2
TheCharlatan: utACK312f3381a2
Tree-SHA512: aa8ff20c3fa735415d05a93b8855877035c300f4d2dfd82f65fd9ed5b5c96ab619b4d84eef114ed0013dc5ff0800cb628ed3801e1efde0cfb0d426930d1673d5
This commit is contained in:
commit
6c77dbfd7e
1 changed files with 1 additions and 1 deletions
|
@ -272,7 +272,7 @@ FILE* FuzzedFileProvider::open()
|
||||||
[&] {
|
[&] {
|
||||||
mode = "a+";
|
mode = "a+";
|
||||||
});
|
});
|
||||||
#if defined _GNU_SOURCE && !defined __ANDROID__
|
#if defined _GNU_SOURCE && (defined(__linux__) || defined(__FreeBSD__))
|
||||||
const cookie_io_functions_t io_hooks = {
|
const cookie_io_functions_t io_hooks = {
|
||||||
FuzzedFileProvider::read,
|
FuzzedFileProvider::read,
|
||||||
FuzzedFileProvider::write,
|
FuzzedFileProvider::write,
|
||||||
|
|
Loading…
Add table
Reference in a new issue