1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-02 20:43:51 +00:00

Fixes BeOS warnings

This commit is contained in:
Eric Petit 2007-01-21 08:43:58 +00:00
parent 1634595bb0
commit 7d6d317ed1
2 changed files with 8 additions and 1 deletions

View file

@ -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>

View file

@ -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
}