From 79796f01993499720ba6bb7fdbe505dacebb24c8 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Fri, 21 Feb 1997 04:37:08 +0000 Subject: [PATCH] Define SOCKET_INITIALIZE and SOCKET_CLEANUP as no-ops under Windows since the Winsock library initialization/cleanup is handled by the DLL entry/exit routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9938 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/ChangeLog | 6 ++++++ src/include/port-sockets.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/include/ChangeLog b/src/include/ChangeLog index be4ca08eb..f37546aab 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,3 +1,9 @@ +Thu Feb 20 23:28:31 1997 Richard Basch + + * port-sockets.h: Define SOCKET_INITIALIZE and SOCKET_CLEANUP + as no-ops under Windows, since this is now handled by + the DLL entry/exit code. + Wed Feb 19 14:25:32 1997 Theodore Y. Ts'o * krb5.hin: Added function prototype for krb5_set_principal_realm(). diff --git a/src/include/port-sockets.h b/src/include/port-sockets.h index 0ebb104f7..a4e11af4f 100644 --- a/src/include/port-sockets.h +++ b/src/include/port-sockets.h @@ -5,8 +5,8 @@ /* Some of our own infrastructure where the WinSock stuff was too hairy to dump into a clean Unix program... */ -#define SOCKET_INITIALIZE() win_socket_initialize() -#define SOCKET_CLEANUP() WSACleanup() +#define SOCKET_INITIALIZE() 0 +#define SOCKET_CLEANUP() #define SOCKET_ERRNO (WSAGetLastError()) #define SOCKET_SET_ERRNO(x) (WSASetLastError (x)) #define SOCKET_NFDS(f) (0) /* select()'s first arg is ignored */ -- 2.26.2