From a40c5dca0276d9aec4436f2a7b698e4cadcf5c863f687fd2e71511d172968f1a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 11 Aug 2010 04:09:10 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-headers?expand=0&rev=4 --- mingw-w64-headers-1.0b.20100730-winsock.patch | 12 ++++++++++++ mingw32-headers.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 mingw-w64-headers-1.0b.20100730-winsock.patch diff --git a/mingw-w64-headers-1.0b.20100730-winsock.patch b/mingw-w64-headers-1.0b.20100730-winsock.patch new file mode 100644 index 0000000..2f03fd1 --- /dev/null +++ b/mingw-w64-headers-1.0b.20100730-winsock.patch @@ -0,0 +1,12 @@ +diff -urEbwB mingw-w64-headers-1.0b.20100730/include/mswsock.h mingw-w64-headers-1.0b.20100730/include/mswsock.h +--- mingw-w64-headers-1.0b.20100730/include/mswsock.h 2010-05-26 19:21:09.000000000 +0200 ++++ mingw-w64-headers-1.0b.20100730/include/mswsock.h 2010-08-11 05:57:39.000000000 +0200 +@@ -6,6 +6,8 @@ + #ifndef _MSWSOCK_ + #define _MSWSOCK_ + ++#include ++ + #ifdef __cplusplus + extern "C" { + #endif diff --git a/mingw32-headers.spec b/mingw32-headers.spec index 82759b0..8c7e490 100644 --- a/mingw32-headers.spec +++ b/mingw32-headers.spec @@ -11,6 +11,7 @@ URL: http://www.mingw.org/ Source0: mingw-w64-headers-%{version}.tar.bz2 Source1000: %{name}-rpmlintrc +Patch0: mingw-w64-headers-1.0b.20100730-winsock.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -25,6 +26,7 @@ MinGW Win64 headers. %prep %setup -q -n mingw-w64-headers-%{version} +%patch0 -p1 %build ./configure --host=%{_mingw32_target} \