]> git.sur5r.net Git - openldap/commitdiff
For Mingw32, include stdlib.h to test for sys_errlist
authorHoward Chu <hyc@openldap.org>
Thu, 28 Oct 1999 07:23:45 +0000 (07:23 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Oct 1999 07:23:45 +0000 (07:23 +0000)
See README 1.27 log

build/openldap.m4

index 1ace3af743b6b57509b047e35ddf0f72d5ce2fff..e9984216d095b7b3baab86be95c2c8c29b626301 100644 (file)
@@ -782,7 +782,10 @@ AC_DEFUN([OL_SYS_ERRLIST],
        AC_TRY_COMPILE([
 #include <stdio.h>
 #include <sys/types.h>
-#include <errno.h> ],
+#include <errno.h>
+#ifdef WINNT
+#include <stdlib.h>
+#endif ],
        [char *c = (char *) *sys_errlist],
        [ol_cv_dcl_sys_errlist=yes
        ol_cv_have_sys_errlist=yes],