EAI_NODATA deprecated, not always defined
authorKen Raeburn <raeburn@mit.edu>
Mon, 9 Apr 2007 20:58:13 +0000 (20:58 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 9 Apr 2007 20:58:13 +0000 (20:58 +0000)
commitc957d4b15f9cbfb3cb6962e9863ed888b40fd606
tree0d9805c4b8a5ea75d86f4a167a2291a9a65c7308
parentd3b3888e6fed956304a699653a9277e14dc85533
EAI_NODATA deprecated, not always defined

Brian Kantor reports (on the kerberos@mit list today) that krb5-1.6
doesn't build on FreeBSD 6.1 because they've done away with
EAI_NODATA, which was removed from the getaddrinfo API in RFC 3943.

This patch conditionalizes two tests for EAI_NODATA on the macro being
defined, and also adds handling for EAI_OVERFLOW, a new error code
added in RFC 3943.

ticket: new
tags: pullup
target_version: 1.6.1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19410 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/os/hst_realm.c
src/lib/krb5/os/locate_kdc.c