mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
GResolver: fix Windows 2000 workaround
Move the <wspiapi.h> include from gwin32resolver.c to gnetworkingprivate.h, since gthreadedresolver.c needs it too. https://bugzilla.gnome.org/show_bug.cgi?id=611696
This commit is contained in:
parent
67ba99f7ab
commit
9a886135c8
@ -30,6 +30,14 @@
|
||||
#include <windns.h>
|
||||
#include <mswsock.h>
|
||||
|
||||
#ifdef HAVE_WSPIAPI_H
|
||||
/* <wspiapi.h> in the Windows SDK and in mingw-w64 has wrappers for
|
||||
* inline workarounds for getaddrinfo, getnameinfo and freeaddrinfo if
|
||||
* they aren't present at run-time (on Windows 2000).
|
||||
*/
|
||||
#include <wspiapi.h>
|
||||
#endif
|
||||
|
||||
#else /* !G_OS_WIN32 */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -34,14 +34,6 @@
|
||||
#include "gsimpleasyncresult.h"
|
||||
#include "gsocketaddress.h"
|
||||
|
||||
#ifdef HAVE_WSPIAPI_H
|
||||
/* <wspiapi.h> in the Windows SDK and in mingw-w64 has wrappers for
|
||||
* inline workarounds for getaddrinfo, getnameinfo and freeaddrinfo if
|
||||
* they aren't present at run-time (on Windows 2000).
|
||||
*/
|
||||
#include <wspiapi.h>
|
||||
#endif
|
||||
|
||||
#include "gioalias.h"
|
||||
|
||||
G_DEFINE_TYPE (GWin32Resolver, g_win32_resolver, G_TYPE_THREADED_RESOLVER)
|
||||
|
Loading…
Reference in New Issue
Block a user