From 80d94785b5405b247712fcfa911c2a8494134278 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 9 Jan 2002 22:15:21 +0000 Subject: [PATCH] * hst_realm.c (EAFNOSUPPORT): On Windows, translate to WSAEAFNOSUPPORT git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14104 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/hst_realm.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index e2dd10ec5..b0fa0bc7f 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2002-01-09 Ken Raeburn + + * hst_realm.c (EAFNOSUPPORT): On Windows, translate to + WSAEAFNOSUPPORT. + 2002-01-08 Ken Raeburn * hst_realm.c (krb5int_get_fq_hostname): New function. Use diff --git a/src/lib/krb5/os/hst_realm.c b/src/lib/krb5/os/hst_realm.c index 568178f76..e4ea6eda6 100644 --- a/src/lib/krb5/os/hst_realm.c +++ b/src/lib/krb5/os/hst_realm.c @@ -398,6 +398,11 @@ krb5_get_host_realm(context, host, realmsp) return 0; } +#if defined(_WIN32) && !defined(__CYGWIN32__) +# ifndef EAFNOSUPPORT +# define EAFNOSUPPORT WSAEAFNOSUPPORT +# endif +#endif krb5_error_code krb5int_translate_gai_error (int num) -- 2.26.2