Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2010 09:59:42 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r215514 - stable/7/contrib/netcat
Message-ID:  <201011190959.oAJ9xg8x067684@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Nov 19 09:59:41 2010
New Revision: 215514
URL: http://svn.freebsd.org/changeset/base/215514

Log:
  RELENG_7 does not have IP_BINDANY yet so hide it under ifdef.
  
  Reported by:	tinderbox

Modified:
  stable/7/contrib/netcat/netcat.c

Modified: stable/7/contrib/netcat/netcat.c
==============================================================================
--- stable/7/contrib/netcat/netcat.c	Fri Nov 19 09:49:14 2010	(r215513)
+++ stable/7/contrib/netcat/netcat.c	Fri Nov 19 09:59:41 2010	(r215514)
@@ -569,8 +569,10 @@ remote_connect(const char *host, const c
 		if (sflag || pflag) {
 			struct addrinfo ahints, *ares;
 
+#ifdef IP_BINDANY
 			/* try IP_BINDANY, but don't insist */
 			setsockopt(s, IPPROTO_IP, IP_BINDANY, &on, sizeof(on));
+#endif
 			memset(&ahints, 0, sizeof(struct addrinfo));
 			ahints.ai_family = res0->ai_family;
 			ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011190959.oAJ9xg8x067684>