[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
signal.h
From: |
Akim Demaille |
Subject: |
signal.h |
Date: |
Fri, 16 May 2003 12:03:08 +0200 |
User-agent: |
Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) |
I was wondering whether signal.h should become a default include, or
whether this patch should be applied:
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.733
diff -u -u -r1.733 autoconf.texi
--- doc/autoconf.texi 14 May 2003 08:29:04 -0000 1.733
+++ doc/autoconf.texi 16 May 2003 10:02:37 -0000
@@ -12723,7 +12723,18 @@
@defmac AC_DECL_SYS_SIGLIST
@acindex{DECL_SYS_SIGLIST}
@cvindex SYS_SIGLIST_DECLARED
-Same as @samp{AC_CHECK_DECLS([sys_siglist])}.
+Same as:
+
address@hidden
+AC_CHECK_DECLS([sys_siglist],,,[
+#include <signal.h>
+/* NetBSD declares sys_siglist in unistd.h. */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif])
address@hidden example
+
+ @samp{AC_CHECK_DECLS([sys_siglist])}.
@end defmac
@defmac AC_DECL_YYTEXT
Index: lib/autoconf/specific.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/specific.m4,v
retrieving revision 1.353
diff -u -u -r1.353 specific.m4
--- lib/autoconf/specific.m4 14 Jan 2003 17:53:12 -0000 1.353
+++ lib/autoconf/specific.m4 16 May 2003 10:02:38 -0000
@@ -60,7 +60,12 @@
# -------------------
AN_IDENTIFIER([sys_siglist], [AC_CHECK_DECLS([sys_siglist])])
AU_DEFUN([AC_DECL_SYS_SIGLIST],
-[AC_CHECK_DECLS([sys_siglist])
+[AC_CHECK_DECLS([sys_siglist],,,[
+#include <signal.h>
+/* NetBSD declares sys_siglist in unistd.h. */
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif])
])# AC_DECL_SYS_SIGLIST
- signal.h,
Akim Demaille <=