mirror of
https://github.com/transmission/transmission
synced 2025-02-02 20:43:51 +00:00
Fixes BeOS warnings
This commit is contained in:
parent
1634595bb0
commit
7d6d317ed1
2 changed files with 8 additions and 1 deletions
|
@ -33,6 +33,11 @@
|
|||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#ifdef SYS_BEOS
|
||||
/* BeOS doesn't declare vasprintf in its headers, but actually
|
||||
* implements it */
|
||||
int vasprintf( char **, const char *, va_list );
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
|
|
@ -298,7 +298,9 @@ void tr_condSignal( tr_cond_t * c )
|
|||
|
||||
void tr_condClose( tr_cond_t * c )
|
||||
{
|
||||
#ifndef SYS_BEOS
|
||||
#ifdef SYS_BEOS
|
||||
*c = -1; /* Shut up gcc */
|
||||
#else
|
||||
pthread_cond_destroy( c );
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue