]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Make it so stty's rprnt attribute works on HPUX 10.20.
authorJim Meyering <jim@meyering.net>
Fri, 3 Mar 2000 21:47:59 +0000 (21:47 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 3 Mar 2000 21:47:59 +0000 (21:47 +0000)
[CREPRINT && !CRPRNT] (CRPRNT): Define.
(control_info): Recognize HPUX's CREPRINT.

src/stty.c

index 9ba372407c6983d696978f60ec4fc0d26c31f886..307e23542dc8643a0a305ab63dac0a80cdbea2c2 100644 (file)
 #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},