🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #148

Re: Compiling gdb-4.6 on ISC 3.0 with gcc-2.2.2

#148
From: Scott Weikart
Date: Fri, 31 Jul 1992 14:04
39 lines
1828 bytes
>Here's the patches I applied to gdb-4.6 to make it compile under Interactive
>Unix 3.0 (ISC 3.0).  Note that my patch to readline.c is basically code lifted
>from bash-1.12, with the _SYSV3 addition added by me.
>
>...
>
>*** readline/readline.c	Mon Jun 15 01:37:47 1992
>--- ../gdb-4.6.i386/readline/readline.c	Thu Jul 16 07:25:30 1992
>***************
>*** 187,192 ****
>--- 187,215 ----
>  
>  /* #define HACK_TERMCAP_MOTION */
>  
>+ #if defined (USG) && ( defined (hpux) || defined (_SYSV3) )
>+ #  if !defined (USGr3)
>+ #    define USGr3
>+ #  endif /* USGr3 */
>+ #endif /* USG && (hpux||_SYSV3) */
>+ 
>+ #if defined (USG) && defined (TIOCGWINSZ)
>+ #  include <sys/stream.h>
>+ #  if defined (USGr4) || defined (USGr3)
>+ #    if defined (Symmetry) || defined (_SEQUENT_)
>+ #      include <sys/pte.h>
>+ #    else
>+ #      include <sys/ptem.h>
>+ #    endif /* !Symmetry || _SEQUENT_ */
>+ #  endif /* USGr4 */
>+ #endif /* USG && TIOCGWINSZ */

In my posted patch above, I forgot to mention that I really wasn't sure
whether '_SYSV3' was the correct define to use to enable the define of
'USGr3'; especially since 'USGr3' is used to include <sys/ptem.h>, and I don't
know how standard that is.  It would be safer to replace '_SYSV3' with 'isc',
to only make it work on ISC Unixes (which matches the philosophy of the
existing use of 'hpux', to make it work on HP UX Unixes).

-scott
Technical Details
Message-ID: <9207311404.AA29806@cdp.igc.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!igc.apc.org!scott

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!igc.apc.org!scott
From: scott@igc.apc.org (Scott Weikart)
Subject: Re:  Compiling gdb-4.6 on ISC 3.0 with gcc-2.2.2
Message-ID: <9207311404.AA29806@cdp.igc.org>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 31 Jul 1992 14:04:34 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 40