This change resolves the following issue: #15951
Only tested on OpenBSD 6.5/amd64
This change resolves the following issue: #15951
Only tested on OpenBSD 6.5/amd64
This change resolves the following issue:
https://github.com/bitcoin/bitcoin/issues/15951
Only tested on OpenBSD 6.5/amd64
tACK 1b05dff. Tested on OpenBSD6.4 (vagrant).
Pre patch:
CXX util/libbitcoin_util_a-rbf.o
CXX util/libbitcoin_util_a-threadnames.o
util/threadnames.cpp:26:5: error: use of undeclared identifier 'pthread_set_name_np'
pthread_set_name_np(pthread_self(), name);
^
1 error generated.
gmake[2]: *** [Makefile:8666: util/libbitcoin_util_a-threadnames.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
with this PR make check builds and all tests pass.
utACK 1b05dff080fe50937a02cfde661db58ace21c553 (I think it'd be slightly better, at least more general, to detect the need for these includes in the configure script, but this is fine to work around the immediate issue)
<!--a722867cd34abeea1fadc8d60700f111-->
Gitian builds for commit 3632143ebbfdd4888571db800c8ee8d684eec57b (master):
a20cc25f71a7b322d87e910659ab2db2... bitcoin-0.18.99-osx-unsigned.dmg22cff7eaeff226e9a17b2b2a0c833f0d... bitcoin-0.18.99-osx64.tar.gz21b3a18ac32aef989052a9c6a5e00186... bitcoin-0.18.99-win32-debug.zip2a40f648ba6201bf24fa72a07bcdeab5... bitcoin-0.18.99-win32-setup-unsigned.exece377820bea1df7760bc40f539b9b608... bitcoin-0.18.99-win32.zip5a0617b00e601bfb9bea4802f812ee80... bitcoin-0.18.99-win64-debug.zip49a9b79492a01004ee0f31b5d37f4af8... bitcoin-0.18.99-win64-setup-unsigned.exeee238dac3b2c35030be07ec75ccd21dd... bitcoin-0.18.99-win64.zip4e1ad0e4baf0849803a52c05f1e35eef... bitcoin-core-osx-0.19-res.ymle3d8bb1375ee1813218ddf889184dfa1... bitcoin-core-win-0.19-res.yml88bbe990f868179eade534308b269dbc... bitcoin-linux-build.loga1dcdf8319a4b2d6203fe7db5d69cb05... bitcoin-osx-build.logd97761083e32810bc67fb42e078c039f... bitcoin-win-build.logGitian builds for commit 1da169961518949bed9f1811e3d1345dedd4061a (master and this pull):
e9c59a2a009948bb2754bf1311d9f731... bitcoin-0.18.99-osx-unsigned.dmge92607ec5be874ec43ea25541ad03d37... bitcoin-0.18.99-osx64.tar.gz856c5a33b95bd1b33f7f78d1b84fc39f... bitcoin-0.18.99-win32-debug.zip12f2c224a2874d85c76e2ddf1cc01076... bitcoin-0.18.99-win32-setup-unsigned.exe2b69bb9fbbf189e08149f752cf95735d... bitcoin-0.18.99-win32.zipe890be617b338a65286267c2662485e2... bitcoin-0.18.99-win64-debug.zipde9cdf726751ed474932f47fdef373c5... bitcoin-0.18.99-win64-setup-unsigned.exee6c648a2af9af857698b959494870268... bitcoin-0.18.99-win64.zip131977303c97a77ab9abbd6d2db4292e... bitcoin-core-osx-0.19-res.yml9ad1513a3f696d620c1bc1a0cffa5a65... bitcoin-core-win-0.19-res.yml3ea6bcd669f5ba24d68fcbb78e1d6d12... bitcoin-linux-build.logdc8f294424f23fcf3ae55175493c3aef... bitcoin-osx-build.log359dd1ccffc99ecb76c66886479e23a1... bitcoin-win-build.log(I think it'd be slightly better, at least more general, to detect the need for these includes in the configure script, but this is fine to work around the immediate issue)
I agree that the most general way is best. I just followed the existing convention from https://github.com/bitcoin/bitcoin/blob/master/src/util/system.cpp :
#if (defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__))
#include <pthread.h>
#include <pthread_np.h>
#endif
Is there anything else I need to do?
No, it's ok, going to merge this, sorry for the delay.