summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2001-07-19 16:40:52 +0000
committerKen Raeburn <raeburn@mit.edu>2001-07-19 16:40:52 +0000
commit1b480c4fd9ea33721759e16e5ef7312c43ee7b11 (patch)
treef1e83222f1f4d7d1358b32e7fa92fb5d5af873ca /src/include
parent15e0fdaef9f5453244a4e6d5b2ce835c758d77ec (diff)
downloadkrb5-1b480c4fd9ea33721759e16e5ef7312c43ee7b11.tar.gz
krb5-1b480c4fd9ea33721759e16e5ef7312c43ee7b11.tar.xz
krb5-1b480c4fd9ea33721759e16e5ef7312c43ee7b11.zip
* fake-addrinfo.h (translate_h_errno): Supply a default value in case some
unrecognized code is returned. (HAVE_GETNAMEINFO): Undefine before defining, just in case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13618 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ChangeLog4
-rw-r--r--src/include/fake-addrinfo.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog
index 618e68c4a..6fb2ee35a 100644
--- a/src/include/ChangeLog
+++ b/src/include/ChangeLog
@@ -1,5 +1,9 @@
2001-07-19 Ken Raeburn <raeburn@mit.edu>
+ * fake-addrinfo.h (translate_h_errno): Supply a default value in
+ case some unrecognized code is returned.
+ (HAVE_GETNAMEINFO): Undefine before defining, just in case.
+
* krb5.hin (krb5_os_hostaddr): Declaration moved...
* k5-int.h (krb5_os_hostaddr): ...to here.
diff --git a/src/include/fake-addrinfo.h b/src/include/fake-addrinfo.h
index a543f98d2..6036b4cac 100644
--- a/src/include/fake-addrinfo.h
+++ b/src/include/fake-addrinfo.h
@@ -364,13 +364,16 @@ static int translate_h_errno (int h)
case NO_ADDRESS:
#endif
return EAI_NODATA;
+ default:
+ return EAI_SYSTEM;
}
}
#endif /* FAI_IMPLEMENTATION */
-#define HAVE_GETADDRINFO /* fake it */
-#define HAVE_GETNAMEINFO /* well, soon... */
+#define HAVE_GETADDRINFO
+#undef HAVE_GETNAMEINFO
+#define HAVE_GETNAMEINFO
#endif /* HAVE_GETADDRINFO */