Rob Shearman <robertshearman(a)gmail.com> writes:
> @@ -437,6 +437,18 @@ typedef struct _CSADDR_INFO {
> } CSADDR_INFO, *PCSADDR_INFO, *LPCSADDR_INFO;
> #endif
>
> +#define _SS_MAXSIZE 128
> +#define _SS_ALIGNSIZE (sizeof(__int64))
> +#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(short))
> +#define _SS_PAD2SIZE (_SS_MAXSIZE - 2 * _SS_ALIGNSIZE)
> +
> +typedef struct WS(sockaddr_storage) {
> + short ss_family;
> + char __ss_pad1[_SS_PAD1SIZE];
> + __int64 __ss_align;
> + char __ss_pad2[_SS_PAD2SIZE];
> +} SOCKADDR_STORAGE, *PSOCKADDR_STORAGE, *LPSOCKADDR_STORAGE;
This is apparently in ws2def.h in the Vista SDK. Also the #defines need
a WS prefix too.
--
Alexandre Julliard
julliard(a)winehq.org