Update of /cvsroot/playerstage/code/player/libplayertcp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3007
Modified Files:
playertcp.cc
Log Message:
applied patch 1821188
Index: playertcp.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayertcp/playertcp.cc,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** playertcp.cc 11 Dec 2007 16:46:16 -0000 1.73
--- playertcp.cc 11 Dec 2007 18:50:34 -0000 1.74
***************
*** 46,49 ****
--- 46,51 ----
#include <errno.h>
#include <string.h>
+ #include <stddef.h>
+ #include <time.h>
#include <unistd.h>
#include <fcntl.h>
***************
*** 402,407 ****
if(!this->num_clients)
{
! usleep(timeout);
! return(0);
}
--- 404,412 ----
if(!this->num_clients)
{
! struct timespec ts;
! ts.tv_sec = timeout / 1000000;
! ts.tv_nsec = (timeout % 1000000) * 1000;
! nanosleep(&ts, NULL);
! return 0;
}
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit