summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-03-03 21:47:59 +0000
committerJim Meyering <jim@meyering.net>2000-03-03 21:47:59 +0000
commit26963dfc153af3f7690651f7982417f020cfdd16 (patch)
tree5823291f7ab84d49c39bd443619f2f50836294f0 /src
parent449de5e30c96a96cdaa2a70b71904096d2b21be9 (diff)
downloadcoreutils-26963dfc153af3f7690651f7982417f020cfdd16.tar.xz
Make it so stty's rprnt attribute works on HPUX 10.20.
[CREPRINT && !CRPRNT] (CRPRNT): Define. (control_info): Recognize HPUX's CREPRINT.
Diffstat (limited to 'src')
-rw-r--r--src/stty.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c
index 9ba372407..307e23542 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},