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:
parent
9cac9633d9
commit
a48f352138
1379
mozilla/configure
vendored
1379
mozilla/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user