1
0
Fork 0
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:
Josh Elsasser 2007-07-19 01:27:11 +00:00
parent 4ab0a93807
commit 32e3f9a8e6
2 changed files with 16 additions and 3 deletions

View file

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

View file

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