Module: wine Branch: master Commit: 3b22148532599fb5912278c437bb64c93c265241 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3b22148532599fb5912278c437...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jan 2 12:20:33 2009 +0100
include: Fix a couple of winsock structures for 64-bit.
---
include/winsock.h | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/include/winsock.h b/include/winsock.h index b531bb3..537e16a 100644 --- a/include/winsock.h +++ b/include/winsock.h @@ -144,9 +144,6 @@ typedef unsigned int u_long; extern "C" { #endif /* defined(__cplusplus) */
-/* proper 4-byte packing */ -#include <pshpack4.h> - /* * Address families */ @@ -365,8 +362,13 @@ typedef struct WS(servent) { char* s_name; /* official service name */ char** s_aliases; /* alias list */ +#ifdef _WIN64 + char* s_proto; /* protocol to use */ + short s_port; /* port # */ +#else short s_port; /* port # */ char* s_proto; /* protocol to use */ +#endif } SERVENT, *PSERVENT, *LPSERVENT;
@@ -647,11 +649,19 @@ typedef struct WS(WSAData) { WORD wVersion; WORD wHighVersion; +#ifdef _WIN64 + WORD iMaxSockets; + WORD iMaxUdpDg; + char *lpVendorInfo; + char szDescription[WSADESCRIPTION_LEN+1]; + char szSystemStatus[WSASYS_STATUS_LEN+1]; +#else char szDescription[WSADESCRIPTION_LEN+1]; char szSystemStatus[WSASYS_STATUS_LEN+1]; WORD iMaxSockets; WORD iMaxUdpDg; char *lpVendorInfo; +#endif } WSADATA, *LPWSADATA;
@@ -1051,9 +1061,6 @@ SOCKET WINAPI WS(socket)(int,int,int);
#endif /* !defined(__WINE_WINSOCK2__) || WS_API_PROTOTYPES */
- -#include <poppack.h> - #ifdef __cplusplus } #endif