summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbus/dbus-sysdeps-win.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c
index 1c974c50..5d0ea0fb 100644
--- a/dbus/dbus-sysdeps-win.c
+++ b/dbus/dbus-sysdeps-win.c
@@ -77,6 +77,18 @@ extern BOOL WINAPI ConvertSidToStringSidA (PSID Sid, LPSTR *StringSid);
#include <ws2tcpip.h>
#endif
+#ifdef HAVE_WSPIAPI_H
+// needed for w2k compatibility (getaddrinfo/freeaddrinfo/getnameinfo)
+# ifdef __GNUC__
+# ifndef _inline
+# define _inline
+# endif
+# include "wspiapi.h"
+# else
+# include <wspiapi.h>
+# endif
+#endif // HAVE_WSPIAPI_H
+
#ifndef O_BINARY
#define O_BINARY 0
#endif