diff options
author | obache <obache@pkgsrc.org> | 2011-01-10 12:47:03 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-01-10 12:47:03 +0000 |
commit | faf0dbe7d8d974729710778e08d35452ea27e615 (patch) | |
tree | fe700ce79f799644d6c3530e624ea6f8ca52cdf6 /sysutils/tits | |
parent | 0bb4cc32e2750da2dace718d5e8fa6ecc1b34992 (diff) | |
download | pkgsrc-faf0dbe7d8d974729710778e08d35452ea27e615.tar.gz |
Fixes build on DraognFly (and other than NetBSD).
Based on PR#44346 by Tony Young.
Diffstat (limited to 'sysutils/tits')
-rw-r--r-- | sysutils/tits/distinfo | 4 | ||||
-rw-r--r-- | sysutils/tits/patches/patch-af | 17 | ||||
-rw-r--r-- | sysutils/tits/patches/patch-ag | 36 |
3 files changed, 56 insertions, 1 deletions
diff --git a/sysutils/tits/distinfo b/sysutils/tits/distinfo index aa1b1d6b90d..f44b07a14d1 100644 --- a/sysutils/tits/distinfo +++ b/sysutils/tits/distinfo @@ -1,6 +1,8 @@ -$NetBSD: distinfo,v 1.9 2011/01/10 12:17:43 obache Exp $ +$NetBSD: distinfo,v 1.10 2011/01/10 12:47:03 obache Exp $ SHA1 (tits-1.2.2.tar.gz) = 18c80cc4d814af1b60d8b75e9777bcb7f8b8a8b8 RMD160 (tits-1.2.2.tar.gz) = 1628dcf16cd5cf9f559a353024c69aef6a396856 Size (tits-1.2.2.tar.gz) = 25384 bytes SHA1 (patch-aa) = 6b8915971eb67c2413c84d23e65bbd66a0a9d968 +SHA1 (patch-af) = f5c143a1231ed6615ee2bfb7ba24390e3d76ffe8 +SHA1 (patch-ag) = 7e5705207aa9c4fe8ecc765c393b7c67197033f7 diff --git a/sysutils/tits/patches/patch-af b/sysutils/tits/patches/patch-af new file mode 100644 index 00000000000..bbdf25ab9d1 --- /dev/null +++ b/sysutils/tits/patches/patch-af @@ -0,0 +1,17 @@ +$NetBSD: patch-af,v 1.1 2011/01/10 12:47:03 obache Exp $ + +* ignore WALLSIG if not exists. + +--- stdio2pty.c.orig 2004-09-12 19:20:28.000000000 +0000 ++++ stdio2pty.c +@@ -18,6 +18,10 @@ + + #define MAX_BUFF_LEN 32768 + ++#ifndef WALLSIG ++#define WALLSIG 0 ++#endif ++ + static int all_done, exit_status, child_pid; + + static struct buffer_ctx *stdout_buff; diff --git a/sysutils/tits/patches/patch-ag b/sysutils/tits/patches/patch-ag new file mode 100644 index 00000000000..d2bb612f854 --- /dev/null +++ b/sysutils/tits/patches/patch-ag @@ -0,0 +1,36 @@ +$NetBSD: patch-ag,v 1.1 2011/01/10 12:47:03 obache Exp $ + +* only for TIOCGFLAGS avalilable. + +--- tty.c.orig 2006-03-19 11:32:48.000000000 +0000 ++++ tty.c +@@ -32,6 +32,7 @@ + #include <sys/types.h> + #include <sys/filio.h> + #include <sys/ioctl.h> ++#include <sys/stat.h> + + #include <assert.h> + #include <ctype.h> +@@ -318,7 +319,9 @@ tty_open_device(struct client_ctx *cc) + { + struct tty_ctx *tc = cc->cc_data; + struct termios tent; ++#ifdef TIOCGFLAGS + int flags; ++#endif + int fd, fd2; + + if (tc->tc_open) +@@ -369,7 +372,11 @@ tty_open_device(struct client_ctx *cc) + * If this is *not* a pseudo tty, ensure DTR is asserted. + * Note: This relies on TIOCGFLAGS returning ENOTTY for pty(4)'s. + */ ++#ifdef TIOCGFLAGS + if (ioctl(fd, TIOCGFLAGS, &flags) == 0 && errno == ENOTTY && ++#else ++ if ( ++#endif + ioctl(fd, TIOCSDTR, 0) < 0) { + syslog(LOG_ALERT, "tty_open_device(): assert DTR failed (%d)", + errno); |