diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2006-10-07 14:52:56 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2006-10-07 14:52:56 +0000 |
commit | f223c764a701504ce571ff5b15e47e883fe2b94a (patch) | |
tree | f17d610033edbca84555a2978cd076bfb672a1aa /misc/splitvt/files/patch-vttest.c | |
parent | - Fix build with gcc4.1 (diff) |
- Fix build with gcc41
PR: ports/104104
Submitted by: trasz <trasz@pin.if.uz.zgora.pl>
Diffstat (limited to '')
-rw-r--r-- | misc/splitvt/files/patch-vttest.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/splitvt/files/patch-vttest.c b/misc/splitvt/files/patch-vttest.c new file mode 100644 index 000000000000..fa228a90cb5e --- /dev/null +++ b/misc/splitvt/files/patch-vttest.c @@ -0,0 +1,17 @@ +--- vttest.c.orig Sat Oct 7 15:38:17 2006 ++++ vttest.c Sat Oct 7 15:40:43 2006 +@@ -87,9 +87,13 @@ + setjmp(alarm_buf); + #endif + while ( !alarmed && (x < 20) ) { +- if ( read(fd, &buff[x++], 1) <= 0 ) ++ // Workaround for gcc41. Without it, splitvt fails with ++ // "Can't initialize screen: Terminal type must be set to vt100". ++ if ( read(fd, &buff[x], 1) <= 0 ) + break; ++ x++; + } ++ x++; + buff[x]='\0'; /* For printing, if we desire. */ + if ( buff[0] == '\033' ) /* An escape sequence? :) */ + rc=1; |