ports/net-p2p/retroshare/files/patch-libbitdht_src_util_bdthreads.cc
Dimitry Andric b2c3984a64 Fix build of net-p2p/retroshare with recent versions of clang.
Approved by:	portmgr blanket
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
PR:		216637
MFH:		2017Q4
2017-12-21 21:01:37 +00:00

11 lines
395 B
C++

--- libbitdht/src/util/bdthreads.cc.orig 2016-08-31 11:24:02 UTC
+++ libbitdht/src/util/bdthreads.cc
@@ -129,7 +129,7 @@ void bdThread::join() /* waits for the the mTid thread
#if defined(_WIN32) || defined(__MINGW32__)
/* Its a struct in Windows compile and the member .p ist checked in the pthreads library */
#else
- if(mTid > 0)
+ if(mTid != NULL)
#endif
pthread_join(mTid, NULL);