Update port-socket.h to include
authorSam Hartman <hartmans@mit.edu>
Sat, 22 Feb 1997 05:35:22 +0000 (05:35 +0000)
committerSam Hartman <hartmans@mit.edu>
Sat, 22 Feb 1997 05:35:22 +0000 (05:35 +0000)
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
src/include/port-sockets.h

index f37546aab55185af9c1f7c48d7af9173052715c4..03fce172c037c02bce77e5f3a0f65ec24d4ad448 100644 (file)
@@ -1,3 +1,8 @@
+Fri Feb 21 17:13:19 1997  Sam Hartman  <hartmans@luminous.MIT.EDU>
+
+       * 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  <basch@lehman.com>
 
        * port-sockets.h: Define SOCKET_INITIALIZE and SOCKET_CLEANUP
index a4e11af4f6310258a773ce1f1444b6b25567b158..ec065e8948887e6577e38ef18c4055530428a919 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef _PORT_SOCKET_H
+#define _PORT_SOCKET_H
 #if defined(_MSDOS) || defined(_WIN32)
 
 #include <winsock.h>
@@ -37,7 +39,7 @@ int win_socket_initialize();
 #define SOCKET_EINTR           WSAEINTR
 
 #else  /* ! HAVE_MACSOCK_H */  /* Sockets stuff for Unix machines */
-
+#include <sys/types.h>
 #include <netinet/in.h>                /* For struct sockaddr_in and in_addr */
 #include <arpa/inet.h>         /* For inet_ntoa */
 #include <netdb.h>             /* For struct hostent, gethostbyname, etc */
@@ -70,3 +72,4 @@ int win_socket_initialize();
 #endif /* HAVE_MACSOCK_H */
 
 #endif /* _MSDOS */
+#endif /*_PORT_SOCKET_H*/