Commit b777581e authored by Bastien Penavayre's avatar Bastien Penavayre Committed by Hugo Beauzée-Luyssen

Adds a patch for mingw's toolchain

The header file iphlpapi.h of mingw is not up-to-date and still
prevent the use of its content for windows 10 non desktop builds,
which is incorrect. This path corrects that.
parent a8222924
......@@ -13,6 +13,7 @@ ENV MINGW_PREFIX=$TOOLCHAIN_PREFIX/$TARGET_TUPLE
ENV PATH=$TOOLCHAIN_PREFIX/bin:$PATH
COPY missing-snprintf.patch .
COPY add-GetAdaptersAddress.path .
RUN mkdir /build && cd /build && \
mkdir $TOOLCHAIN_PREFIX && \
......@@ -51,6 +52,7 @@ RUN mkdir /build && cd /build && \
make install-gcc && \
cd /build/mingw-w64/mingw-w64-crt && \
git am ../../../missing-snprintf.patch && \
git am ../../../add-GetAdaptersAddress.path && \
mkdir build && cd build && \
../configure --prefix=$MINGW_PREFIX \
--host=$TARGET_TUPLE && \
......
From a430d9a80d259da29a6a3119380c95f017b16d7d Mon Sep 17 00:00:00 2001
From: VideoLAN Buildbot <buildbot@videolan.org>
Date: Thu, 16 Jun 2016 12:02:01 +0200
Subject: [PATCH] Allow windows10 to use content of iphlpapi.h
---
mingw-w64-headers/include/iphlpapi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-headers/include/iphlpapi.h b/mingw-w64-headers/include/iphlpapi.h
index 03aed33..55bc1e4 100644
--- a/mingw-w64-headers/include/iphlpapi.h
+++ b/mingw-w64-headers/include/iphlpapi.h
@@ -8,7 +8,7 @@
#include <winapifamily.h>
-#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WINNT_VER >= 0x0A00
#ifdef __cplusplus
extern "C" {
--
2.7.4
......@@ -14,6 +14,7 @@ ENV PATH=$TOOLCHAIN_PREFIX/bin:$PATH
COPY no-rtl-func.patch .
COPY missing-snprintf.patch .
COPY add-GetAdaptersAddress.path .
RUN mkdir /build && cd /build && \
mkdir $TOOLCHAIN_PREFIX && \
......@@ -25,7 +26,9 @@ RUN mkdir /build && cd /build && \
git config --global user.email buildbot@videolan.org && \
git clone --depth=1 git://git.code.sf.net/p/mingw-w64/mingw-w64 && \
cd mingw-w64 && git am ../../no-rtl-func.patch && \
git am ../../missing-snprintf.patch && cd .. && \
git am ../../missing-snprintf.patch && \
git am ../../add-GetAdaptersAddress.path && \
cd .. && \
tar xf gcc-5.3.0.tar.bz2 && \
tar xf binutils-2.26.tar.bz2 && \
cd binutils-2.26 && mkdir build && cd build && \
......
From a430d9a80d259da29a6a3119380c95f017b16d7d Mon Sep 17 00:00:00 2001
From: VideoLAN Buildbot <buildbot@videolan.org>
Date: Thu, 16 Jun 2016 12:02:01 +0200
Subject: [PATCH] Allow windows10 to use content of iphlpapi.h
---
mingw-w64-headers/include/iphlpapi.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-headers/include/iphlpapi.h b/mingw-w64-headers/include/iphlpapi.h
index 03aed33..55bc1e4 100644
--- a/mingw-w64-headers/include/iphlpapi.h
+++ b/mingw-w64-headers/include/iphlpapi.h
@@ -8,7 +8,7 @@
#include <winapifamily.h>
-#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
+#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WINNT_VER >= 0x0A00
#ifdef __cplusplus
extern "C" {
--
2.7.4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment