This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH RFC] expect/configure.in NSIG revisited


Rodney Brown's recent change to expect/configure.in needs a bit of
tweaking for Linux/IA-64.  On Linux/IA-64, it turns out that when
_XOPEN_SOURCE is defined, NSIG won't be defined, but _NSIG will.  The
expect sources already handle this case since they define NSIG to be
_NSIG if NSIG is not defined.

I've tested the patch below on UnixWare (where I think Rodney was
seeing problems) and Linux/IA-64.  I'll wait a few days for comments
before checking it in.

Also... which version of autoconf should I be using when regenerating
configure?  I'm seeing more differences than I like using version 2.13.

	* configure.in (_XOPEN_SOURCE): Permit definition of _NSIG to
	define _XOPEN_SOURCE too.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/expect/configure.in,v
retrieving revision 1.3
diff -u -p -r1.3 configure.in
--- configure.in	2001/05/12 04:09:04	1.3
+++ configure.in	2001/05/18 18:42:52
@@ -859,6 +859,9 @@ if test -r /dev/ptmx -a "x$svr4_ptys_bro
 /* _XOPEN_SOURCE can remove NSIG on UnixWare or OSF/1. */
 #define _XOPEN_SOURCE
 #include <signal.h>
+#ifndef NSIG
+#define NSIG _NSIG
+#endif
 char junk[NSIG];],
     [],
 	AC_DEFINE(_XOPEN_SOURCE)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]