]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
support: Use HAVE_LIBTIRPC to switch in bindresvport_sa(3t)
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Jul 2009 20:16:46 +0000 (16:16 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 14 Jul 2009 20:16:46 +0000 (16:16 -0400)
commit 383a026d99624c88c0e802103ef4c4865db8eb71, which fixed an
earlier commit, is still not quite correct.

bindresvport_sa(3t) is available whenever libtirpc is linked.
There's no need to use IPV6_SUPPORTED here.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/nfs/rpc_socket.c

index cebf83ddc71c94f9e68cba8c9c761d2ab2fdf25d..2f76542e8f1a6ad88ca119845aaa68b8ac0d716f 100644 (file)
@@ -132,7 +132,7 @@ static int nfs_bind(const int sock, const sa_family_t family)
        return -1;
 }
 
        return -1;
 }
 
-#ifdef IPV6_SUPPORTED
+#ifdef HAVE_LIBTIRPC
 
 /*
  * Bind a socket using an unused privileged source port.
 
 /*
  * Bind a socket using an unused privileged source port.
@@ -162,7 +162,7 @@ static int nfs_bindresvport(const int sock, const sa_family_t family)
        return -1;
 }
 
        return -1;
 }
 
-#else  /* !IPV6_SUPPORTED */
+#else  /* !HAVE_LIBTIRPC */
 
 /*
  * Bind a socket using an unused privileged source port.
 
 /*
  * Bind a socket using an unused privileged source port.
@@ -180,7 +180,7 @@ static int nfs_bindresvport(const int sock, const sa_family_t family)
        return bindresvport(sock, NULL);
 }
 
        return bindresvport(sock, NULL);
 }
 
-#endif /* !IPV6_SUPPORTED */
+#endif /* !HAVE_LIBTIRPC */
 
 /*
  * Perform a non-blocking connect on the socket fd.
 
 /*
  * Perform a non-blocking connect on the socket fd.