From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Buettner To: RDBrown@mira.net, RodneyBrown@mynd.com, gdb@sources.redhat.com, gdb-patches@sources.redhat.com Subject: Re: gdb March 2001 archive Date: Tue, 27 Mar 2001 08:04:00 -0000 Message-id: <1010327160404.ZM4245@ocotillo.lan> References: X-SW-Source: 2001-03/msg00495.html 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.)