diff options
Diffstat (limited to 'net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch')
-rw-r--r-- | net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch b/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch new file mode 100644 index 000000000000..f9f0f43609ed --- /dev/null +++ b/net-misc/bfgminer/files/bfgminer-5.5.0-cpus-undefined.patch @@ -0,0 +1,23 @@ +https://bugs.gentoo.org/775560 + +commit 83f83d2cbc5e3044b314b914beb32dbb83a0055e +Author: Luke Dashjr <luke-jr+git@utopios.org> +Date: Tue Feb 9 15:39:56 2021 +0000 + + Bugfix: miner: Can't free cpus in non-cpumining builds anymore + +diff --git a/miner.c b/miner.c +index 075ea4655..de62f13a0 100644 +--- a/miner.c ++++ b/miner.c +@@ -11197,8 +11197,10 @@ void _bfg_clean_up(bool restarting) + print_summary(); + } + ++#ifdef USE_CPUMINING + if (opt_n_threads > 0) + free(cpus); ++#endif + + curl_global_cleanup(); + |