mirror of
https://github.com/transmission/transmission
synced 2025-01-03 13:35:36 +00:00
(trunk) "perl -r" wasn't portable to os x
This commit is contained in:
parent
ea93eab02d
commit
ee0771c751
2 changed files with 5 additions and 1 deletions
|
@ -1734,6 +1734,7 @@ fillOutputBuffer( tr_peermsgs * msgs, time_t now )
|
|||
tr_peerIoWriteUint8 ( io, out, BT_PIECE );
|
||||
tr_peerIoWriteUint32( io, out, req.index );
|
||||
tr_peerIoWriteUint32( io, out, req.offset );
|
||||
/* FIXME(libevent2): use evbuffer_add_reference() */
|
||||
tr_peerIoWriteBytes ( io, out, buf, req.length );
|
||||
tr_peerIoWriteBuf( io, out, TRUE );
|
||||
bytesWritten += EVBUFFER_LENGTH( out );
|
||||
|
@ -1843,6 +1844,7 @@ sendBitfield( tr_peermsgs * msgs )
|
|||
tr_peerIoWriteUint32( msgs->peer->io, out,
|
||||
sizeof( uint8_t ) + field->byteCount );
|
||||
tr_peerIoWriteUint8 ( msgs->peer->io, out, BT_BITFIELD );
|
||||
/* FIXME(libevent2): use evbuffer_add_reference() */
|
||||
tr_peerIoWriteBytes ( msgs->peer->io, out, field->bits, field->byteCount );
|
||||
dbgmsg( msgs, "sending bitfield... outMessage size is now %zu",
|
||||
EVBUFFER_LENGTH( out ) );
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
echo "creating libtransmission/version.h"
|
||||
|
||||
user_agent_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep user_agent_prefix | cut -d , -f 6`
|
||||
|
||||
peer_id_prefix=`grep m4_define configure.ac | sed "s/[][)(]/,/g" | grep peer_id_prefix | cut -d , -f 6`
|
||||
|
||||
if [ -d .svn ]; then
|
||||
svn_revision=`svnversion | sed -r 's/([0-9]+).*/\1/' `
|
||||
svn_revision=`svnversion -n | cut -d: -f1 | cut -dM -f1 | cut -dS -f1`
|
||||
else
|
||||
svn_revision=`grep -oh '\$Id: [^ ]\+ [0-9]\+' */*\.cc */*\.[chm] | cut -d ' ' -f 3 | sort | tail -n 1 -`
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue