[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: one more fix for GNU/kFreeBSD
From: |
Jim Meyering |
Subject: |
Re: one more fix for GNU/kFreeBSD |
Date: |
Sat, 05 Sep 2009 16:04:51 +0200 |
Petr Salinger wrote:
> please could you also add patch bellow.
> GNU/kFreeBSD doesn't have TAB1 and TAB2.
>
> It have been applied for a while in debian package, see also
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=520368
Thanks.
I've pushed this:
>From 305bbd99b2cfceeb866e67210ff43bc1b07c6861 Mon Sep 17 00:00:00 2001
From: Petr Salinger <address@hidden>
Date: Sat, 5 Sep 2009 11:15:29 +0200
Subject: [PATCH] stty: use TAB0, TAB1, and TAB2 only if defined
* src/stty.c (mode_info) [TAB0, TAB1, TAB2]: Guard each
entry with #ifdef. Required for GNU/kFreeBSD.
Reported by Petr Salinger in http://bugs.debian.org/520368.
---
src/stty.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/stty.c b/src/stty.c
index 37aee28..b980e84 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -279,10 +279,18 @@ static struct mode_info const mode_info[] =
{"cr0", output, SANE_SET, CR0, CRDLY},
#endif
#ifdef TABDLY
+#ifdef TAB3
{"tab3", output, SANE_UNSET, TAB3, TABDLY},
+#endif
+#ifdef TAB2
{"tab2", output, SANE_UNSET, TAB2, TABDLY},
+#endif
+#ifdef TAB1
{"tab1", output, SANE_UNSET, TAB1, TABDLY},
+#endif
+#ifdef TAB0
{"tab0", output, SANE_SET, TAB0, TABDLY},
+#endif
#else
# ifdef OXTABS
{"tab3", output, SANE_UNSET, OXTABS, 0},
--
1.6.4.2.409.g85dc3
Re: snapshot in a few hours, Eric Blake, 2009/09/04