conditional getsockopt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1189 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -2295,7 +2295,7 @@ tn(int argc, char **argv)
|
||||
perror("telnet: socket");
|
||||
return 0;
|
||||
}
|
||||
#if defined(IP_OPTIONS) && defined(IPPROTO_IP)
|
||||
#if defined(IP_OPTIONS) && defined(IPPROTO_IP) && defined(HAVE_SETSOCKOPT)
|
||||
if (srp && setsockopt(net, IPPROTO_IP, IP_OPTIONS, (void *)srp,
|
||||
srlen) < 0)
|
||||
perror("setsockopt (IP_OPTIONS)");
|
||||
|
@@ -459,7 +459,7 @@ int main(int argc, char **argv)
|
||||
syslog(LOG_WARNING, "setsockopt (SO_KEEPALIVE): %m");
|
||||
}
|
||||
|
||||
#if defined(IPPROTO_IP) && defined(IP_TOS)
|
||||
#if defined(IPPROTO_IP) && defined(IP_TOS) && defined(HAVE_SETSOCKOPT)
|
||||
{
|
||||
# if defined(HAS_GETTOS)
|
||||
struct tosent *tp;
|
||||
@@ -979,7 +979,7 @@ telnet(f, p)
|
||||
ioctl(f, FIONBIO, (char *)&on);
|
||||
ioctl(p, FIONBIO, (char *)&on);
|
||||
|
||||
#if defined(SO_OOBINLINE)
|
||||
#if defined(SO_OOBINLINE) && defined(HAVE_SETSOCKOPT)
|
||||
setsockopt(net, SOL_SOCKET, SO_OOBINLINE,
|
||||
(void *)&on, sizeof on);
|
||||
#endif /* defined(SO_OOBINLINE) */
|
||||
|
Reference in New Issue
Block a user