diff options
author | fanquake <fanquake@gmail.com> | 2024-03-06 12:05:47 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-03-06 12:08:08 +0000 |
commit | 6c77dbfd7e07a46966f224bd7d502330ea57c770 (patch) | |
tree | 5da3f1a2fd3e5a776d45a0cdf519aa77546d956d | |
parent | 0fa9f17332a6d9b2eb6e3d9f9102bfd2d9c6f516 (diff) | |
parent | 312f3381a2d3a7afb7c81b4662214d4d67b4e84a (diff) |
Merge bitcoin/bitcoin#29529: fuzz: restrict fopencookie usage to Linux & FreeBSD
312f3381a2d3a7afb7c81b4662214d4d67b4e84a 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:
ACK https://github.com/bitcoin/bitcoin/pull/29529/commits/312f3381a2d3a7afb7c81b4662214d4d67b4e84a
TheCharlatan:
utACK 312f3381a2d3a7afb7c81b4662214d4d67b4e84a
Tree-SHA512: aa8ff20c3fa735415d05a93b8855877035c300f4d2dfd82f65fd9ed5b5c96ab619b4d84eef114ed0013dc5ff0800cb628ed3801e1efde0cfb0d426930d1673d5
-rw-r--r-- | src/test/fuzz/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/util.cpp b/src/test/fuzz/util.cpp index 23b0761355..259b00fcae 100644 --- a/src/test/fuzz/util.cpp +++ b/src/test/fuzz/util.cpp @@ -272,7 +272,7 @@ FILE* FuzzedFileProvider::open() [&] { mode = "a+"; }); -#if defined _GNU_SOURCE && !defined __ANDROID__ +#if defined _GNU_SOURCE && (defined(__linux__) || defined(__FreeBSD__)) const cookie_io_functions_t io_hooks = { FuzzedFileProvider::read, FuzzedFileProvider::write, |