Index: nsock/src/nsock_connect.c =================================================================== --- nsock/src/nsock_connect.c (revision 9113) +++ nsock/src/nsock_connect.c (working copy) @@ -106,7 +106,7 @@ if (iod->locallen) { int one = 1; - setsockopt(iod->sd, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)); + setsockopt(iod->sd, SOL_SOCKET, SO_REUSEADDR, (const char*)&one, sizeof(one)); if (bind(iod->sd, (struct sockaddr *) &iod->local, iod->locallen) == -1) { if (ms->tracelevel > 0) nsock_trace(ms, "Bind to %s failed (IOD #%li) EID %li", @@ -115,7 +115,7 @@ } if (iod->ipoptslen && ss->ss_family == AF_INET) { - if (setsockopt(iod->sd, IPPROTO_IP, IP_OPTIONS, iod->ipopts, iod->ipoptslen) == -1) { + if (setsockopt(iod->sd, IPPROTO_IP, IP_OPTIONS, (const char *)iod->ipopts, iod->ipoptslen) == -1) { if (ms->tracelevel > 0) nsock_trace(ms, "Setting of IP options failed (IOD #%li) EID %li", iod->id, nse->id); } Index: tcpip.cc =================================================================== --- tcpip.cc (revision 9113) +++ tcpip.cc (working copy) @@ -167,7 +167,7 @@ if (sd == -1) return; - setsockopt(sd, IPPROTO_IP, IP_OPTIONS, opts, optslen); + setsockopt(sd, IPPROTO_IP, IP_OPTIONS, (const char*)opts, optslen); #endif }