From 11d228674039c26a10c5516086925265a45ac36c Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Sat, 22 Feb 1997 05:35:22 +0000 Subject: [PATCH] Update port-socket.h to include sys/types.h to work on NetBSD and AIX. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9943 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 5 +++++ src/include/port-sockets.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index f37546aab..03fce172c 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 21 17:13:19 1997 Sam Hartman + + * port-sockets.h: Include sys/types.h before netinet/in.h for NetBSD + Protect against multiple inclusion + Thu Feb 20 23:28:31 1997 Richard Basch * port-sockets.h: Define SOCKET_INITIALIZE and SOCKET_CLEANUP diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h index a4e11af4f..ec065e894 100644 --- a/src/include/port-sockets.h +++ b/src/include/port-sockets.h @@ -1,3 +1,5 @@ +#ifndef _PORT_SOCKET_H +#define _PORT_SOCKET_H #if defined(_MSDOS) || defined(_WIN32) #include @@ -37,7 +39,7 @@ int win_socket_initialize(); #define SOCKET_EINTR WSAEINTR #else /* ! HAVE_MACSOCK_H */ /* Sockets stuff for Unix machines */ - +#include #include /* For struct sockaddr_in and in_addr */ #include /* For inet_ntoa */ #include /* For struct hostent, gethostbyname, etc */ @@ -70,3 +72,4 @@ int win_socket_initialize(); #endif /* HAVE_MACSOCK_H */ #endif /* _MSDOS */ +#endif /*_PORT_SOCKET_H*/ -- 2.26.2