Fix build for vxWorks 5.5.2

This commit is contained in:
Andrew Johnson
2016-01-21 10:34:32 -06:00
parent 98504d1cdc
commit ffe441d032
2 changed files with 6 additions and 6 deletions

View File

@@ -166,8 +166,8 @@ udpiiu::udpiiu (
#ifdef IP_ADD_MEMBERSHIP
{
int flag = 1;
if(setsockopt(this->sock, IPPROTO_IP, IP_MULTICAST_LOOP, &flag, sizeof(flag))==-1)
{
if ( setsockopt ( this->sock, IPPROTO_IP, IP_MULTICAST_LOOP,
(char *) &flag, sizeof ( flag ) ) == -1 ) {
char sockErrBuf[64];
epicsSocketConvertErrnoToString (
sockErrBuf, sizeof ( sockErrBuf ) );