Commit 3b221485 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Fix a couple of winsock structures for 64-bit.

parent 253ccfbb
...@@ -144,9 +144,6 @@ typedef unsigned int u_long; ...@@ -144,9 +144,6 @@ typedef unsigned int u_long;
extern "C" { extern "C" {
#endif /* defined(__cplusplus) */ #endif /* defined(__cplusplus) */
/* proper 4-byte packing */
#include <pshpack4.h>
/* /*
* Address families * Address families
*/ */
...@@ -365,8 +362,13 @@ typedef struct WS(servent) ...@@ -365,8 +362,13 @@ typedef struct WS(servent)
{ {
char* s_name; /* official service name */ char* s_name; /* official service name */
char** s_aliases; /* alias list */ char** s_aliases; /* alias list */
#ifdef _WIN64
char* s_proto; /* protocol to use */
short s_port; /* port # */
#else
short s_port; /* port # */ short s_port; /* port # */
char* s_proto; /* protocol to use */ char* s_proto; /* protocol to use */
#endif
} SERVENT, *PSERVENT, *LPSERVENT; } SERVENT, *PSERVENT, *LPSERVENT;
...@@ -647,11 +649,19 @@ typedef struct WS(WSAData) ...@@ -647,11 +649,19 @@ typedef struct WS(WSAData)
{ {
WORD wVersion; WORD wVersion;
WORD wHighVersion; 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 szDescription[WSADESCRIPTION_LEN+1];
char szSystemStatus[WSASYS_STATUS_LEN+1]; char szSystemStatus[WSASYS_STATUS_LEN+1];
WORD iMaxSockets; WORD iMaxSockets;
WORD iMaxUdpDg; WORD iMaxUdpDg;
char *lpVendorInfo; char *lpVendorInfo;
#endif
} WSADATA, *LPWSADATA; } WSADATA, *LPWSADATA;
...@@ -1051,9 +1061,6 @@ SOCKET WINAPI WS(socket)(int,int,int); ...@@ -1051,9 +1061,6 @@ SOCKET WINAPI WS(socket)(int,int,int);
#endif /* !defined(__WINE_WINSOCK2__) || WS_API_PROTOTYPES */ #endif /* !defined(__WINE_WINSOCK2__) || WS_API_PROTOTYPES */
#include <poppack.h>
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment