diff --git a/configure b/configure index 3006070583e..86eab077eb9 100755 --- a/configure +++ b/configure @@ -10200,6 +10200,7 @@ if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include +#include int main () { diff --git a/configure.ac b/configure.ac index 680432c8554..a01b44c1bf1 100644 --- a/configure.ac +++ b/configure.ac @@ -1344,7 +1344,8 @@ then ac_save_CPPFLAGS="$CPPFLAGS" WINE_PACKAGE_FLAGS(GNUTLS,[gnutls]) AC_CHECK_HEADER(gnutls/gnutls.h, - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +#include ]], [[static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;]])], [WINE_CHECK_SONAME(gnutls,gnutls_global_init,,[GNUTLS_CFLAGS=""],[$GNUTLS_LIBS])])], [GNUTLS_CFLAGS=""]) CPPFLAGS="$ac_save_CPPFLAGS" diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c index 70b827660f8..cbe64e863bf 100644 --- a/dlls/secur32/schannel_gnutls.c +++ b/dlls/secur32/schannel_gnutls.c @@ -25,6 +25,7 @@ #include #ifdef SONAME_LIBGNUTLS #include +#include #endif #include "windef.h"