vxworks fix

This commit is contained in:
Michael Davidsaver
2019-06-26 17:01:43 -07:00
parent fd95f90acc
commit 3a8a24deb3

View File

@@ -1187,7 +1187,7 @@ void BlockingTCPTransportCodec::setRxTimeout(bool ena)
timo.tv_usec = (timeout-timo.tv_sec)*1e6;
#endif
int ret = setsockopt(_channel, SOL_SOCKET, SO_RCVTIMEO, (const char*)&timo, sizeof(timo));
int ret = setsockopt(_channel, SOL_SOCKET, SO_RCVTIMEO, (char*)&timo, sizeof(timo));
if(ret==-1) {
int err = SOCKERRNO;
static int lasterr;