This is the mail archive of the gdb@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]

Re: gdb March 2001 archive


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.)

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