diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-07-14 16:16:46 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-07-14 16:16:46 -0400 |
commit | 965b4cf6398bed2a2c722b9d632b9674c228e36c (patch) | |
tree | 6279e645f627e50f4f9ae57504e82fc0af2f842c /support/nfs | |
parent | 1f9c144db7be4c7e5eb07325a752c3306e13bfeb (diff) | |
download | nfs-utils-965b4cf6398bed2a2c722b9d632b9674c228e36c.tar.gz nfs-utils-965b4cf6398bed2a2c722b9d632b9674c228e36c.tar.xz nfs-utils-965b4cf6398bed2a2c722b9d632b9674c228e36c.zip |
support: Use HAVE_LIBTIRPC to switch in bindresvport_sa(3t)
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>
Diffstat (limited to 'support/nfs')
-rw-r--r-- | support/nfs/rpc_socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/support/nfs/rpc_socket.c b/support/nfs/rpc_socket.c index cebf83d..2f76542 100644 --- a/support/nfs/rpc_socket.c +++ b/support/nfs/rpc_socket.c @@ -132,7 +132,7 @@ static int nfs_bind(const int sock, const sa_family_t family) return -1; } -#ifdef IPV6_SUPPORTED +#ifdef HAVE_LIBTIRPC /* * 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; } -#else /* !IPV6_SUPPORTED */ +#else /* !HAVE_LIBTIRPC */ /* * 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); } -#endif /* !IPV6_SUPPORTED */ +#endif /* !HAVE_LIBTIRPC */ /* * Perform a non-blocking connect on the socket fd. |