summaryrefslogtreecommitdiffstats
path: root/src/include/port-sockets.h
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2004-09-15 20:02:31 +0000
committerTom Yu <tlyu@mit.edu>2004-09-15 20:02:31 +0000
commitbed2aeff6eae4396094c4c9336b3e77397b16dc3 (patch)
tree3fd3f0bde7aa1b54d7e9d7976b33652ef7c66c0d /src/include/port-sockets.h
parent2205e6670c7ccc6fa1f39669ddfdad0db5f79a78 (diff)
downloadkrb5-bed2aeff6eae4396094c4c9336b3e77397b16dc3.tar.gz
krb5-bed2aeff6eae4396094c4c9336b3e77397b16dc3.tar.xz
krb5-bed2aeff6eae4396094c4c9336b3e77397b16dc3.zip
* configure.in: Check for h_errno declaration in netdb.h
* port-sockets.h: Explicitly declare h_errno if it's missing. ticket: 1044 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16758 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/port-sockets.h')
-rw-r--r--src/include/port-sockets.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h
index 3154c6179..5a8562dfc 100644
--- a/src/include/port-sockets.h
+++ b/src/include/port-sockets.h
@@ -77,6 +77,10 @@ typedef WSABUF sg_buf;
#include <arpa/inet.h> /* For inet_ntoa */
#include <netdb.h>
+#ifndef HAVE_NETDB_H_H_ERRNO
+extern int h_errno; /* In case it's missing, e.g., HP-UX 10.20. */
+#endif
+
#include <sys/param.h> /* For MAXHOSTNAMELEN */
#include <sys/socket.h> /* For SOCK_*, AF_*, etc */
#include <sys/time.h> /* For struct timeval */