freebsd-ports/sysutils/bbcp/files/patch-src__bbcp_Pthread.C
Bartek Rutkowski 8509237026 sysutils/bbcp: update 20150113 -> 20150116
- Add LICENSE_FILE
- Change pkg-descr

PR:		196814
Submitted by:	Chris Hutchinson <portmaster@bsdforge.com>
2015-02-24 11:27:04 +00:00

20 lines
714 B
C

--- src/bbcp_Pthread.C.orig 2015-01-16 13:38:06.000000000 -0800
+++ src/bbcp_Pthread.C 2015-01-16 13:39:48.000000000 -0800
@@ -128,7 +128,7 @@
/* C o n d W a i t */
/******************************************************************************/
-#if defined(MACOS) || defined(AIX)
+#if defined(MACOS) || defined(AIX) || defined(FREEBSD)
int bbcp_Semaphore::CondWait()
{
@@ -215,7 +215,7 @@
void *bbcp_Thread_Wait(pthread_t tid)
{long retc;
void *tstat;
- if (retc = pthread_join(tid, (void **)&tstat)) tstat = (void *)retc;
+ if ((retc = pthread_join(tid, (void **)&tstat))) tstat = (void *)retc;
return tstat;
}