Mingw builds require _WIN32_WINNT >= 0x0501 (XP) to use the IP_ADAPTER features of nsNotifyAddrListener.

Also fix header include case for cross-compile builds.
Bug #358023 r=bsmedberg


git-svn-id: svn://10.0.0.236/trunk@215951 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org 2006-11-28 03:43:05 +00:00
parent 9cac9633d9
commit a48f352138
3 changed files with 707 additions and 692 deletions

1379
mozilla/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -386,21 +386,28 @@ case "$target" in
WINVER=400
;;
*)
WINVER=500
if test -n "$GNU_CC"; then
WINVER=501
else
WINVER=500
fi
;;
esac
MOZ_ARG_WITH_STRING(windows-version,
[ --with-windows-version=400|500 Minimum Windows version to support
400: Windows 95; 500: Windows 2000],
[ --with-windows-version=WINVER
Minimum Windows version (WINVER) to support
400: Windows 95
500: Windows 2000
501: Windows XP],
WINVER=$withval)
case "$WINVER" in
400|500)
400|500|501)
;;
*)
AC_MSG_ERROR([Invalid value --with-windows-version, must be 400 or 500]);
AC_MSG_ERROR([Invalid value --with-windows-version, must be 400, 500 or 501]);
;;
esac

View File

@ -52,7 +52,8 @@
#include "nsNotifyAddrListener.h"
#include "nsString.h"
#include <IPTypes.h>
#include <iptypes.h>
#include <iphlpapi.h>
typedef DWORD (WINAPI *GetAdaptersAddressesFunc)(ULONG, DWORD, PVOID,
PIP_ADAPTER_ADDRESSES,