From c4ef027860a3c8e88fa1e918c59c9c5db074706b Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Wed, 6 Mar 2013 20:38:01 +0100 Subject: [PATCH 2/3] Mingw plattform fixes. --- dbus/dbus-sysdeps-win.c | 33 +++++++++++++++++++++++++++++++++ 1 Datei geändert, 33 Zeilen hinzugefügt(+) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index aaa0c2f..50754c8 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -36,6 +36,7 @@ #endif #endif +#include #include "dbus-internals.h" #include "dbus-sha.h" #include "dbus-sysdeps.h" @@ -54,11 +55,43 @@ #include #include #include +#include /* Declarations missing in mingw's headers */ extern BOOL WINAPI ConvertStringSidToSidA (LPCSTR StringSid, PSID *Sid); extern BOOL WINAPI ConvertSidToStringSidA (PSID Sid, LPSTR *StringSid); +#ifndef _MSC_VER +typedef enum { + TcpConnectionOffloadStateInHost = 0, + TcpConnectionOffloadStateOffloading = 1, + TcpConnectionOffloadStateOffloaded = 2, + TcpConnectionOffloadStateUploading = 3, + TcpConnectionOffloadStateMax = 4 +} TCP_CONNECTION_OFFLOAD_STATE; + +typedef struct _MIB_TCPROW2 { + DWORD dwState; + DWORD dwLocalAddr; + DWORD dwLocalPort; + DWORD dwRemoteAddr; + DWORD dwRemotePort; + DWORD dwOwningPid; + TCP_CONNECTION_OFFLOAD_STATE dwOffloadState; +} MIB_TCPROW2, *PMIB_TCPROW2; + +typedef struct _MIB_TCPTABLE2 { + DWORD dwNumEntries; + MIB_TCPROW2 table[ANY_SIZE]; +} MIB_TCPTABLE2,*PMIB_TCPTABLE2; + +ULONG WINAPI GetTcpTable2( + PMIB_TCPTABLE2 TcpTable, + PULONG SizePointer, + WINBOOL Order +); +#endif + #include #include -- 1.7.10.4