mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-26 07:58:52 +01:00
fix so non-debug build builds
This commit is contained in:
parent
60aa0cb614
commit
d1869a233c
2 changed files with 3 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue