ported to FreeBSD (removed reference to MSG_NOSIGNAL in TcpSocket.cpp)
This commit is contained in:
parent
09efc062c2
commit
c76ded0c35
|
@ -1,5 +1,6 @@
|
|||
DarkIce next release
|
||||
|
||||
o ported to FreeBSD (removed reference to MSG_NOSIGNAL in TcpSocket.cpp)
|
||||
o bug fix: maximum bitrate setting fixed for Ogg Vorbis streams
|
||||
|
||||
20-08-2002: DarkIce 0.11 released
|
||||
|
|
|
@ -10,4 +10,3 @@ o set comment fields for Ogg Vorbis streams as in
|
|||
http://www.xiph.org/ogg/vorbis/doc/v-comment.html
|
||||
o change config file to separate descriptions of input, streams and
|
||||
stream targets (servers, files, etc.)
|
||||
o don't refer to MSG_NOSIGNAL in TcpSocket.cpp on FreeBSD
|
||||
|
|
|
@ -102,11 +102,30 @@ else
|
|||
fi
|
||||
|
||||
|
||||
dnl-----------------------------------------------------------------------------
|
||||
dnl make sure at least one of lame and vorbis present
|
||||
dnl-----------------------------------------------------------------------------
|
||||
if test "x${LAME_LDFLAGS}" = "x" -a "x${VORBIS_LDFLAGS}" = "x" ; then
|
||||
AC_MSG_ERROR( [neither lame nor Ogg Vorbis configured])
|
||||
fi
|
||||
|
||||
|
||||
dnl-----------------------------------------------------------------------------
|
||||
dnl check for MSG_NOSIGNAL for the send() function in libsocket
|
||||
dnl-----------------------------------------------------------------------------
|
||||
AC_MSG_CHECKING(for MSG_NOSIGNAL)
|
||||
AC_TRY_COMPILE([#include <sys/socket.h>], [
|
||||
int f = MSG_NOSIGNAL;
|
||||
], [
|
||||
# Yes, we have it...
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_MSG_NOSIGNAL, 1, [use MSG_NOSIGNAL for send()])
|
||||
], [
|
||||
# We'll have to use signals
|
||||
AC_MSG_RESULT(no)
|
||||
])
|
||||
|
||||
|
||||
|
||||
AC_OUTPUT(Makefile src/Makefile man/Makefile)
|
||||
|
||||
|
|
|
@ -312,8 +312,11 @@ TcpSocket :: write ( const void * buf,
|
|||
return 0;
|
||||
}
|
||||
|
||||
// ret = send( sockfd, buf, len, MSG_DONTWAIT);
|
||||
#ifdef HAVE_MSG_NOSIGNAL
|
||||
ret = send( sockfd, buf, len, MSG_NOSIGNAL);
|
||||
#else
|
||||
ret = send( sockfd, buf, len, 0);
|
||||
#endif
|
||||
|
||||
if ( ret == -1 ) {
|
||||
if ( errno == EAGAIN ) {
|
||||
|
@ -349,6 +352,9 @@ TcpSocket :: close ( void ) throw ( Exception )
|
|||
$Source$
|
||||
|
||||
$Log$
|
||||
Revision 1.8 2002/08/28 18:24:46 darkeye
|
||||
ported to FreeBSD (removed reference to MSG_NOSIGNAL in TcpSocket.cpp)
|
||||
|
||||
Revision 1.7 2002/07/20 16:37:06 darkeye
|
||||
added fault tolerance in case a server connection is dropped
|
||||
|
||||
|
|
Loading…
Reference in New Issue