Package: coreutils
Severity: important
Version: 7.1-2 Tags: patch
User: glibc-bsd-de...@lists.alioth.debian.org
Usertags: kfreebsd

Hi,

the current version fails to build on GNU/kFreeBSD.

The GNU/kFreeBSD does not have symbolic constant TAB1 and TAB2,
its <termios.h> contains only:

# define TAB0   (0 << 2)        /* no tab delay and expansion */
# define TAB3   (1 << 2)        /* expand tabs to spaces */
# define TABDLY TAB3            /* tab delay mask */

Please could you apply patch bellow.

It would also be nice if you can ask upstream
to include needed change.

Thanks in advance

                        Petr


--- src/stty.c~
+++ src/stty.c
@@ -279,10 +279,18 @@
   {"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},




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to