libbitcoin: fix gcc11 compilation by patch

main
Frido Friedemann 2 years ago
parent 0fc7fd8959
commit 32d3b84307
  1. 12
      pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch
  2. 2
      pkgs/tools/misc/libbitcoin/libbitcoin.nix

@ -0,0 +1,12 @@
diff --git a/include/bitcoin/bitcoin/wallet/dictionary.hpp b/include/bitcoin/bitcoin/wallet/dictionary.hpp
index 632f1afc..63a51764 100644
--- a/include/bitcoin/bitcoin/wallet/dictionary.hpp
+++ b/include/bitcoin/bitcoin/wallet/dictionary.hpp
@@ -19,6 +19,7 @@
#ifndef LIBBITCOIN_WALLET_DICTIONARY_HPP
#define LIBBITCOIN_WALLET_DICTIONARY_HPP
+#include <cstddef>
#include <array>
#include <vector>
#include <bitcoin/bitcoin/compat.hpp>

@ -21,6 +21,8 @@ in stdenv.mkDerivation {
enableParallelBuilding = true;
patches = [ ./fix-gcc11-compilation.patch ];
configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"

Loading…
Cancel
Save