fix so non-debug build builds

This commit is contained in:
Eric House 2012-05-22 19:18:04 -07:00
parent 60aa0cb614
commit d1869a233c
2 changed files with 3 additions and 1 deletions

View file

@ -318,9 +318,10 @@ read_pipe_then_close( CommonGlobals* cGlobals, const TransportProcs* procs )
/* 0-length packet closes it off */
XP_LOGF( "%s: writing 0-length packet", __func__ );
len = 0;
#ifdef DEBUG
ssize_t nwritten = write( fd, &len, sizeof(len) );
XP_ASSERT( nwritten == sizeof(len) );
#endif
close( fd );
}

View file

@ -90,6 +90,7 @@ extern void linux_debugf(const char*, ...)
#else
# define XP_MALLOC(pool,nbytes) malloc(nbytes)
# define XP_CALLOC(pool,nbytes) calloc(1,nbytes)
# define XP_REALLOC(pool,p,s) realloc((p),(s))
# define XP_FREE(pool,p) free(p)
void linux_freep( void** ptrp );