From 4b6f2fd2ea29a84fec63b328846bfb31bb85268e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 23 Jul 2008 20:55:56 +0000 Subject: In the gss rpc package, replace the type used for a socket on Windows with SOCKET (instead of int) and replace all calls to close() that are used to close sockets with closesocket(). src/include/port-sockets.h includes the definitions of SOCKET and closesocket() for non-Windows systems. ticket: 6041 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20578 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/gssrpc/svc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include') diff --git a/src/include/gssrpc/svc.h b/src/include/gssrpc/svc.h index a5198e7771..dfe0bec654 100644 --- a/src/include/gssrpc/svc.h +++ b/src/include/gssrpc/svc.h @@ -72,7 +72,11 @@ enum xprt_stat { * Server side transport handle */ typedef struct SVCXPRT { +#ifdef _WIN32 + SOCKET xp_sock; +#else int xp_sock; +#endif u_short xp_port; /* associated port number */ struct xp_ops { /* receive incomming requests */ -- cgit