[pkg-fgfs-crew] Bug#636366: fgrun: FTBFS(kfreebsd): OLCUC is a linux-specific extention to termios
Christoph Egger
christoph at debian.org
Tue Aug 2 18:13:31 UTC 2011
Package: src:fgrun
Version: 1.5.2-1
Severity: normal
Hi!
Your package failed to build on the kfreebsd-* buildds because OLCUC is
linux specific.It can be fixed by the following patch:
--- fgrun-1.5.2.orig/src/run_posix.cxx
+++ fgrun-1.5.2/src/run_posix.cxx
@@ -59,7 +59,11 @@ Wizard::run_fgfs( const std::string &arg
#if defined(HAVE_TERMIOS_H)
struct termios term;
tcgetattr( STDOUT_FILENO, &term );
+#if defined(OLCUC)
term.c_oflag &= ~( OLCUC | ONLCR );
+#else
+ term.c_oflag &= ~ONLCR;
+#endif
pid = pty_fork( &master, 0, &term, 0 );
#else
@@ -171,8 +175,12 @@ Wizard::run_ts()
#if defined(HAVE_TERMIOS_H)
struct termios term;
tcgetattr( STDOUT_FILENO, &term );
- term.c_oflag &= ~( OLCUC | ONLCR );
+#if defined(OLCUC)
+ term.c_oflag &= ~( OLCUC | ONLCR );
+#else
+ term.c_oflag &= ~ONLCR;
+#endif
tsPid = pty_fork( &master, 0, &term, 0 );
#else
tsPid = pty_fork( &master, 0, 0, 0 );
Regards
Christoph
If you have further questions please mail debian-bsd at lists.debian.org
--
9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer
A. Because it breaks the logical sequence of discussion
Q. Why is top posting bad?
More information about the pkg-fgfs-crew
mailing list