diff --git a/build/openldap.m4 b/build/openldap.m4 index 1ace3af743..e9984216d0 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -782,7 +782,10 @@ AC_DEFUN([OL_SYS_ERRLIST], AC_TRY_COMPILE([ #include #include -#include ], +#include +#ifdef WINNT +#include +#endif ], [char *c = (char *) *sys_errlist], [ol_cv_dcl_sys_errlist=yes ol_cv_have_sys_errlist=yes],