From: Sam Hartman Date: Sat, 22 Feb 1997 05:35:22 +0000 (+0000) Subject: Update port-socket.h to include X-Git-Tag: krb5-1.1-beta1~1248 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11d228674039c26a10c5516086925265a45ac36c;p=krb5.git 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 --- 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*/