Test for each of the missing macros individually.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Sep 2008 11:38:19 +0000 (13:38 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 15 Sep 2008 11:38:19 +0000 (13:38 +0200)
ChangeLog
m4/errno_h.m4

index 6817f88593dc8fd62366487b938b776b47ad841d..65b21fd8a4cd21f14899f9295e5712ab35e4003c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-09-15  Bruno Haible  <bruno@clisp.org>
+
+       * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
+       are missing on OpenBSD 4.0 individually.
+       Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
+
 2008-09-15  Bruno Haible  <bruno@clisp.org>
 
        * doc/posix-headers/errno.texi: Mention the Cygwin problem.
index 7f59e88d172667302e59e38bc89c9960ea8d3e50..b5af07800c3c6608f09a1ab7a66aef26df7ad0ea 100644 (file)
@@ -17,7 +17,31 @@ 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>
-#if !defined EOVERFLOW || !defined ECANCELED
+#if !defined ENOMSG
+booboo
+#endif
+#if !defined EIDRM
+booboo
+#endif
+#if !defined ENOLINK
+booboo
+#endif
+#if !defined EPROTO
+booboo
+#endif
+#if !defined EMULTIHOP
+booboo
+#endif
+#if !defined EBADMSG
+booboo
+#endif
+#if !defined EOVERFLOW
+booboo
+#endif
+#if !defined ENOTSUP
+booboo
+#endif
+#if !defined ECANCELED
 booboo
 #endif
       ],