From: Jim Meyering Date: Fri, 3 Mar 2000 21:47:59 +0000 (+0000) Subject: Make it so stty's rprnt attribute works on HPUX 10.20. X-Git-Tag: TEXTUTILS-2_0e~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=26963dfc153af3f7690651f7982417f020cfdd16;p=thirdparty%2Fcoreutils.git Make it so stty's rprnt attribute works on HPUX 10.20. [CREPRINT && !CRPRNT] (CRPRNT): Define. (control_info): Recognize HPUX's CREPRINT. --- diff --git a/src/stty.c b/src/stty.c index 9ba372407c..307e23542d 100644 --- a/src/stty.c +++ b/src/stty.c @@ -134,6 +134,9 @@ #if defined(VREPRINT) && !defined(CRPRNT) # define CRPRNT Control ('r') #endif +#if defined(CREPRINT) && !defined(CRPRNT) +# define CRPRNT Control ('r') +#endif #if defined(VWERASE) && !defined(CWERASE) # define CWERASE Control ('w') #endif @@ -379,6 +382,10 @@ static struct control_info control_info[] = #endif #ifdef VREPRINT {"rprnt", CRPRNT, VREPRINT}, +#else +# ifdef CREPRINT /* HPUX 10.20 needs this */ + {"rprnt", CRPRNT, CREPRINT}, +# endif #endif #ifdef VWERASE {"werase", CWERASE, VWERASE},