]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs command: old glibc missing some flags
authorChuck Lever <chuck.lever@oracle.com>
Thu, 31 Jul 2008 09:24:18 +0000 (05:24 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 31 Jul 2008 09:24:18 +0000 (05:24 -0400)
commit2d173a587a7dbee81ffaf246d044f384fb6487c8
tree5233cb4768b2f694e24c43eefeddd256985bd290
parent29970b87f87d2115f55affdbee2bf74cec940b43
mount.nfs command: old glibc missing some flags

Old versions of glibc (< 2.4) have a getaddrinfo(3) implementation, but
do not include public definitions of the AI_V4MAPPED, AI_ALL, and
AI_ADDRCONFIG flags because it was believed that these flags were not
standardized.  However, these flags have standard definitions both in
POSIX 1003 and in RFCs, and were thus included in later releases of
glibc.

To allow the mount.nfs command to build on systems with these older
versions of glibc, add conditional definitions for these flags in
utils/mount/network.c.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/network.c