Override <errno.h> also on Cygwin.
[gnulib.git] / m4 / errno_h.m4
index 2113b53..7f59e88 100644 (file)
@@ -17,7 +17,7 @@ AC_DEFUN([gl_HEADER_ERRNO_H_BODY],
   AC_CACHE_CHECK([for complete errno.h], gl_cv_header_errno_h_complete, [
     AC_EGREP_CPP(booboo,[
 #include <errno.h>
-#ifndef EOVERFLOW
+#if !defined EOVERFLOW || !defined ECANCELED
 booboo
 #endif
       ],
@@ -86,4 +86,4 @@ yes
     AC_SUBST($1[_HIDDEN])
     AC_SUBST($1[_VALUE])
   fi
-])
\ No newline at end of file
+])