From 14a60754951b7b4920ba1dfcf9c9aac99ae8bce4 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 20 Mar 2009 11:47:00 +0000 Subject: [PATCH] libadmin-windows-socket-20090320 LICENSE IPL10 a socket on Windows is type SOCKET not HANDLE --- src/libadmin/afs_Admin.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libadmin/afs_Admin.h b/src/libadmin/afs_Admin.h index 3a8dfa43fd..c29085a60b 100644 --- a/src/libadmin/afs_Admin.h +++ b/src/libadmin/afs_Admin.h @@ -71,11 +71,12 @@ typedef struct afs_ClientConfig { } afs_ClientConfig_t, *afs_ClientConfig_p; #if AFS_NT40_ENV -typedef HANDLE rxdebugSocket_t; +typedef SOCKET rxdebugSocket_t; +#define INVALID_RXDEBUG_SOCKET INVALID_SOCKET #else /* AFS_NT40_ENV */ typedef int rxdebugSocket_t; -#endif /* AFS_NT40_ENV */ #define INVALID_RXDEBUG_SOCKET ((rxdebugSocket_t)-1) +#endif /* AFS_NT40_ENV */ typedef struct { rxdebugSocket_t sock;