to be compatible with select prototype on hp.
This commit is contained in:
+9
-2
@@ -108,14 +108,21 @@ if(client_lock->recurse>0){
|
||||
taskSuspend(0);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__hpux)
|
||||
status = select(
|
||||
maxfd+1,
|
||||
(int *)&pfdi->readMask,
|
||||
(int *)&pfdi->writeMask,
|
||||
(int *)NULL,
|
||||
ptimeout);
|
||||
#else
|
||||
status = select(
|
||||
maxfd+1,
|
||||
&pfdi->readMask,
|
||||
&pfdi->writeMask,
|
||||
NULL,
|
||||
ptimeout);
|
||||
|
||||
#endif
|
||||
#if 0
|
||||
printf("leaving select stat=%d errno=%d \n", status, MYERRNO);
|
||||
#endif
|
||||
|
||||
@@ -707,12 +707,21 @@ struct timeval *ptimeout
|
||||
# ifdef vxWorks
|
||||
taskSafe();
|
||||
# endif
|
||||
# if defined (__hpux)
|
||||
status = select(
|
||||
pfdctx->maxfd,
|
||||
(int *)&pfdctx->readch,
|
||||
(int *)&pfdctx->writech,
|
||||
(int *)&pfdctx->excpch,
|
||||
ptimeout);
|
||||
# else
|
||||
status = select(
|
||||
pfdctx->maxfd,
|
||||
&pfdctx->readch,
|
||||
&pfdctx->writech,
|
||||
&pfdctx->excpch,
|
||||
ptimeout);
|
||||
# endif
|
||||
# ifdef vxWorks
|
||||
taskUnsafe();
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user