File w32pth-2.0.4-mingw.patch of Package mingw64-w32pth
--- w32pth-2.0.4/configure.ac 2010-08-02 20:26:30.000000000 +0200
+++ w32pth-2.0.4/configure.ac 2010-08-23 16:25:07.000000000 +0200
@@ -53,7 +53,7 @@
VERSION=$PACKAGE_VERSION
AC_CONFIG_SRCDIR([w32-pth.c])
-AC_CANONICAL_TARGET
+AC_CANONICAL_HOST
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
AM_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIR([m4])
--- w32pth-2.0.4/pth.h 2010-07-21 17:15:06.000000000 +0200
+++ w32pth-2.0.4/pth.h 2010-08-23 16:25:07.000000000 +0200
@@ -30,7 +30,7 @@
#error w32pth conflict. A vanilla pth.h has already been included.
#endif
-
+#include <winsock2.h>
#include <windows.h> /* We need this for sockaddr et al. FIXME: too
heavyweight - may be we should factor such
@@ -38,6 +38,10 @@
user files to include it only if required. */
#include <sys/types.h> /* For sigset_t. */
+#ifdef __MINGW64_VERSION_MAJOR
+typedef uintptr_t sigset_t;
+#endif
+
#ifndef W32_PTH_HANDLE_INTERNAL
#define W32_PTH_HANDLE_INTERNAL int
#endif
--- w32pth-2.0.4/w32-pth.c 2010-07-21 17:17:20.000000000 +0200
+++ w32pth-2.0.4/w32-pth.c 2010-08-23 16:25:07.000000000 +0200
@@ -26,6 +26,7 @@
#include <config.h>
+#include <winsock2.h>
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>