From owner-freebsd-ports Thu Feb 1 10:20:07 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA15883 for ports-outgoing; Thu, 1 Feb 1996 10:20:07 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA15814 Thu, 1 Feb 1996 10:20:02 -0800 (PST) Received: from gemini.sdsp.mc.xerox.com ([13.231.132.20]) by alpha.xerox.com with SMTP id <15057(14)>; Thu, 1 Feb 1996 10:19:22 PST Received: from gnu.mc.xerox.com (gnu.sdsp.mc.xerox.com) by gemini.sdsp.mc.xerox.com (4.1/SMI-4.1) id AA01203; Thu, 1 Feb 96 13:19:19 EST Received: by gnu.mc.xerox.com (4.1/SMI-4.1) id AA09036; Thu, 1 Feb 96 13:19:17 EST Message-Id: <9602011819.AA09036@gnu.mc.xerox.com> X-Mailer: exmh version 1.6.4 10/10/95 To: Jerry Kendall Cc: "Amancio Hasty Jr." , Andreas Klemm , ports@freebsd.org, hackers@freebsd.org Subject: Re: Pentium gcc port done In-Reply-To: Your message of "Wed, 31 Jan 1996 06:11:37 PST." <96Jan31.091819est.20485@janus.border.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 1 Feb 1996 10:19:15 PST From: "Marty Leisner" Sender: owner-ports@freebsd.org Precedence: bulk Instead of doing system ifdefs, I this is how LPRng does it... if defined(HAVE_SYS_NERR) # if !defined(HAVE_SYS_NERR_DEF) extern int sys_nerr; # endif # define num_errors (sys_nerr) # else # define num_errors (-1) /* always use "errno=%d" */ # endif # if defined(HAVE_SYS_ERRLIST) # if !defined(HAVE_SYS_ERRLIST_DEF) extern const char *const sys_errlist[]; # endif # else # undef num_errors # define num_errors (-1) /* always use "errno=%d" */ # endif #endif the definitions are created by configure scripts. > > > *** gcc-2.7.2/cccp.c.orig Tue Jan 30 22:44:20 1996 > > > --- gcc-2.7.2/cccp.c Tue Jan 30 22:44:40 1996 > > > *************** > > > *** 316,322 **** > > > #ifndef VMS > > > #ifndef HAVE_STRERROR > > > extern int sys_nerr; > > > ! #if defined(bsd4_4) > > > extern const char *const sys_errlist[]; > > > #else > > > extern char *sys_errlist[]; -- marty leisner@sdsp.mc.xerox.com Member of the League for Programming Freedom