diff -uwrN gnutls-1.7.15.orig/gl/getaddrinfo.c gnutls-1.7.15/gl/getaddrinfo.c --- gnutls-1.7.15.orig/gl/getaddrinfo.c 2007-05-26 11:43:24.000000000 -0700 +++ gnutls-1.7.15/gl/getaddrinfo.c 2007-07-25 21:56:54.000000000 -0700 @@ -55,6 +55,10 @@ # define WIN32_NATIVE #endif +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif + #ifdef WIN32_NATIVE typedef int (WSAAPI *getaddrinfo_func) (const char*, const char*, const struct addrinfo*, diff -uwrN gnutls-1.7.15.orig/gl/getaddrinfo.h gnutls-1.7.15/gl/getaddrinfo.h --- gnutls-1.7.15.orig/gl/getaddrinfo.h 2007-05-25 06:04:22.000000000 -0700 +++ gnutls-1.7.15/gl/getaddrinfo.h 2007-07-25 21:56:54.000000000 -0700 @@ -31,6 +31,10 @@ # include #endif +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif + #ifndef HAVE_STRUCT_ADDRINFO /* Structure to contain information about address of a service provider. */ diff -uwrN gnutls-1.7.15.orig/gl/inet_ntop.c gnutls-1.7.15/gl/inet_ntop.c --- gnutls-1.7.15.orig/gl/inet_ntop.c 2007-05-25 06:04:22.000000000 -0700 +++ gnutls-1.7.15/gl/inet_ntop.c 2007-07-25 21:56:54.000000000 -0700 @@ -42,6 +42,10 @@ #include #include +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif + #ifndef EAFNOSUPPORT # define EAFNOSUPPORT EINVAL #endif diff -uwrN gnutls-1.7.15.orig/gl/inet_ntop.h gnutls-1.7.15/gl/inet_ntop.h --- gnutls-1.7.15.orig/gl/inet_ntop.h 2007-05-25 06:04:22.000000000 -0700 +++ gnutls-1.7.15/gl/inet_ntop.h 2007-07-25 21:56:54.000000000 -0700 @@ -20,6 +20,10 @@ #include #include +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif + /* Converts an internet address from internal format to a printable, presentable format. AF is an internet address family, such as AF_INET or AF_INET6. diff -uwrN gnutls-1.7.15.orig/gl/inet_pton.c gnutls-1.7.15/gl/inet_pton.c --- gnutls-1.7.15.orig/gl/inet_pton.c 2007-05-25 06:04:22.000000000 -0700 +++ gnutls-1.7.15/gl/inet_pton.c 2007-07-25 21:56:54.000000000 -0700 @@ -42,6 +42,10 @@ #include #include +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif + #ifndef EAFNOSUPPORT # define EAFNOSUPPORT EINVAL #endif diff -uwrN gnutls-1.7.15.orig/gl/inet_pton.h gnutls-1.7.15/gl/inet_pton.h --- gnutls-1.7.15.orig/gl/inet_pton.h 2007-05-25 06:04:22.000000000 -0700 +++ gnutls-1.7.15/gl/inet_pton.h 2007-07-25 21:56:54.000000000 -0700 @@ -20,6 +20,10 @@ #include #include +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif + #if !HAVE_DECL_INET_PTON extern int inet_pton (int af, const char *restrict src, void *restrict dst); #endif diff -uwrN gnutls-1.7.15.orig/gl/string_.h gnutls-1.7.15/gl/string_.h --- gnutls-1.7.15.orig/gl/string_.h 2007-06-26 00:54:57.000000000 -0700 +++ gnutls-1.7.15/gl/string_.h 2007-07-25 21:56:54.000000000 -0700 @@ -27,6 +27,9 @@ /* The definition of GL_LINK_WARNING is copied here. */ +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif #ifdef __cplusplus extern "C" { diff -uwrN gnutls-1.7.15.orig/lgl/time_.h gnutls-1.7.15/lgl/time_.h --- gnutls-1.7.15.orig/lgl/time_.h 2007-06-26 00:55:02.000000000 -0700 +++ gnutls-1.7.15/lgl/time_.h 2007-07-25 21:58:18.000000000 -0700 @@ -33,6 +33,10 @@ # @INCLUDE_NEXT@ @NEXT_TIME_H@ +#ifdef __MINGW32__ +#define restrict __restrict__ +#endif + # ifdef __cplusplus extern "C" { # endif