diff --git a/mingw-w64-headers-1.0b.20110505-unsignedsocket.patch b/mingw-w64-headers-1.0b.20110505-unsignedsocket.patch new file mode 100644 index 0000000..8dc5410 --- /dev/null +++ b/mingw-w64-headers-1.0b.20110505-unsignedsocket.patch @@ -0,0 +1,12 @@ +diff -urEbwB mingw-w64-headers-1.0b.20110505/include/psdk_inc/_socket_types.h mingw-w64-headers-1.0b.20110505/include/psdk_inc/_socket_types.h +--- mingw-w64-headers-1.0b.20110505/include/psdk_inc/_socket_types.h 2011-05-19 16:05:41.592641295 +0200 ++++ mingw-w64-headers-1.0b.20110505/include/psdk_inc/_socket_types.h 2011-05-19 16:06:28.030204004 +0200 +@@ -7,7 +7,7 @@ + #ifndef ___WSA_SOCKET_TYPES_H + #define ___WSA_SOCKET_TYPES_H + +-#if 0 ++#if 1 + typedef UINT_PTR SOCKET; + #else + typedef INT_PTR SOCKET; diff --git a/mingw64-headers.spec b/mingw64-headers.spec index 3204dcd..27034d1 100644 --- a/mingw64-headers.spec +++ b/mingw64-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.20110505-unsignedsocket.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=%{_mingw64_target} \