gdb March 2001 archive

Kevin Buettner kevinb@cygnus.com
Tue Mar 27 08:04:00 GMT 2001


On Mar 27,  8:57pm, RDBrown@mira.net wrote:

> Building from the 0324 snapshot on alpha-dec-osf4.0e and i586-sco-sysv5uw7.1.0
> somewhat required the following patch - which should be done with autoconf.
> Both provide NSIG but only if _XOPEN_SOURCE etc are undefined.
> (Both using gcc-2.95.2)
[...]
> --- expect/exp_trap.c.orig	Tue Mar 27 00:17:00 2001
> +++ expect/exp_trap.c	Mon Mar 26 13:18:59 2001
> @@ -22,6 +22,12 @@
>  #ifndef NSIG
>  #ifdef _NSIG
>  #define NSIG _NSIG
> +#else
> +#ifdef __osf__	/* alpha-dec-osf4.0e workaround */
> +#define NSIG 49
> +#else		/* i586-sco-sysv5uw7.1.0 workaround */
> +#define NSIG 35
> +#endif
>  #endif
>  #endif

I've been getting past this problem by just undefining _XOPEN_SOURCE
in the resulting expect_cf.h file (after running configure).  But I
agree that something ought to be done in the configury.  (I'd prefer
to not add defines for NSIG to the sources.)



More information about the Gdb-patches mailing list