[complement-svn] SF.net SVN: complement: [1733] trunk/complement/explore/include/sockios/ sockstrea
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-09-10 09:46:16
|
Revision: 1733 http://complement.svn.sourceforge.net/complement/?rev=1733&view=rev Author: complement Date: 2007-09-10 02:46:15 -0700 (Mon, 10 Sep 2007) Log Message: ----------- compile fix, related to non-block sockets Modified Paths: -------------- trunk/complement/explore/include/sockios/sockstream.cc Modified: trunk/complement/explore/include/sockios/sockstream.cc =================================================================== --- trunk/complement/explore/include/sockios/sockstream.cc 2007-09-10 09:44:41 UTC (rev 1732) +++ trunk/complement/explore/include/sockios/sockstream.cc 2007-09-10 09:46:15 UTC (rev 1733) @@ -19,6 +19,9 @@ # include <stropts.h> // for ioctl() call #endif +#ifdef __FIT_NONBLOCK_SOCKETS +# include <fcntl.h> +#endif #ifdef STLPORT _STLP_BEGIN_NAMESPACE @@ -575,8 +578,8 @@ } if ( offset < count ) { // MUST BE: (offset % sizeof(char_traits)) == 0 ! - offset /= sizeof(char_traits); - count /= sizeof(char_traits); + offset /= sizeof(charT); + count /= sizeof(charT); traits::move( this->pbase(), this->pbase() + offset, count - offset ); // std::copy_backword( this->pbase() + offset, this->pbase() + count, this->pbase() ); setp( this->pbase(), this->epptr() ); // require: set pptr This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |