[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: signal.h
From: |
Akim Demaille |
Subject: |
Re: signal.h |
Date: |
Sat, 17 May 2003 11:46:25 +0200 |
User-agent: |
Gnus/5.1001 (Gnus v5.10.1) Emacs/21.3 (gnu/linux) |
Paul> Akim Demaille <address@hidden> writes:
>> I was wondering whether signal.h should become a default include, or
>> whether this patch should be applied:
Paul> I vote for the latter. Signal-related stuff tends to be pretty
Paul> localized in signal.h and friends, this sys_siglist gotcha
Paul> notwithstanding.
Thanks! I'm installing the following patch.
Index: ChangeLog
from Akim Demaille <address@hidden>
* lib/autoconf/specific.m4: Include signal.h and unistd.h.
* doc/autoconf.texi (Obsolete Macros): Adjust.
Reported by Werner LEMBERG and Debian Bug 190886.
Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.293
diff -u -u -r1.293 NEWS
--- NEWS 14 May 2003 08:34:10 -0000 1.293
+++ NEWS 16 May 2003 10:07:44 -0000
@@ -3,6 +3,9 @@
** New macros
AC_C_RESTRICT
+** AC_DECL_SYS_SIGLIST
+ Works again.
+
** Improve DJGPP portability
The Autoconf tools and configure behave better under DJGPP.
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:08:08 -0000
@@ -12723,7 +12723,17 @@
@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
@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:08:10 -0000
@@ -60,7 +60,13 @@
# -------------------
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, 2003/05/16
- Re: signal.h, Paul Eggert, 2003/05/17
- Re: signal.h,
Akim Demaille <=