mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
Conditionally define a couple of macros that may be missing.
Remove a few stray ; that can cause problems.
This commit is contained in:
parent
4ab0a93807
commit
32e3f9a8e6
2 changed files with 16 additions and 3 deletions
|
@ -68,6 +68,19 @@ struct bufferevent;
|
|||
#undef NULL
|
||||
#define NULL ( ( void * )0 )
|
||||
|
||||
#ifndef AF_LOCAL
|
||||
#define AF_LOCAL AF_UNIX
|
||||
#endif
|
||||
|
||||
#ifndef PF_LOCAL
|
||||
#define PF_LOCAL PF_UNIX
|
||||
#endif
|
||||
|
||||
#ifndef SUN_LEN
|
||||
#define SUN_LEN( sun ) \
|
||||
( sizeof( *(sun) ) - sizeof( (sun)->sun_path ) + strlen( (sun)->sun_path ) )
|
||||
#endif
|
||||
|
||||
#define SAFEFREE( ptr ) \
|
||||
do \
|
||||
{ \
|
||||
|
|
|
@ -132,9 +132,9 @@ static struct torhashes gl_hashids = RB_INITIALIZER( &gl_hashids );
|
|||
static int gl_gotlistinfo = 0;
|
||||
static int gl_gotliststat = 0;
|
||||
|
||||
RB_GENERATE_STATIC( torlist, torinfo, idlinks, toridcmp );
|
||||
RB_GENERATE_STATIC( tornames, torinfo, namelinks, tornamecmp );
|
||||
RB_GENERATE_STATIC( torhashes, torhash, link, torhashcmp );
|
||||
RB_GENERATE_STATIC( torlist, torinfo, idlinks, toridcmp )
|
||||
RB_GENERATE_STATIC( tornames, torinfo, namelinks, tornamecmp )
|
||||
RB_GENERATE_STATIC( torhashes, torhash, link, torhashcmp )
|
||||
|
||||
int
|
||||
main( int argc, char ** argv )
|
||||
|
|
Loading…
Reference in a new issue