summaryrefslogtreecommitdiff
path: root/converters/hztty/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'converters/hztty/patches/patch-ab')
-rw-r--r--converters/hztty/patches/patch-ab61
1 files changed, 57 insertions, 4 deletions
diff --git a/converters/hztty/patches/patch-ab b/converters/hztty/patches/patch-ab
index 3b60957ba0b..0581187b747 100644
--- a/converters/hztty/patches/patch-ab
+++ b/converters/hztty/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.1.1.1 2002/06/19 09:39:18 agc Exp $
+$NetBSD: patch-ab,v 1.2 2005/01/19 16:11:41 tv Exp $
---- tty.c.orig Sun Jan 29 12:24:55 1995
-+++ tty.c Mon Oct 6 23:56:32 1997
-@@ -26,7 +26,7 @@
+--- tty.c.orig 1995-01-29 15:24:55.000000000 -0500
++++ tty.c
+@@ -26,7 +26,7 @@ static char *rcs_id="$Id: tty.c,v 2.1 19
# define TTYDEV "/dev/pty/ttyxx"
#else /* !hpux */
# define PTYCHAR1 "pqrstuvwxyzPQRSTUVWXYZ"
@@ -11,3 +11,56 @@ $NetBSD: patch-ab,v 1.1.1.1 2002/06/19 09:39:18 agc Exp $
# define PTYDEV "/dev/ptyxx"
# define TTYDEV "/dev/ttyxx"
#endif /* !hpux */
+@@ -39,6 +39,10 @@ extern char *ptsname();
+ # include <sys/utsname.h>
+ #endif
+
++#ifdef __INTERIX
++# define setpgrp() setpgid(0, 0)
++#endif
++
+ static char ptydev[32];
+ static char ttydev[32];
+ static int pty_search();
+@@ -61,7 +65,7 @@ int get_pty (pty)
+ return 0;
+ #endif /* SYSV && SYSV386 */
+
+-#if (defined(att) || defined(ATT)) && (!defined(_SEQUENT_))
++#if (defined(att) || defined(ATT) || defined(__INTERIX)) && (!defined(_SEQUENT_))
+ {
+ if ((*pty = open ("/dev/ptmx", O_RDWR)) < 0)
+ return 1;
+@@ -414,7 +418,10 @@ void make_raw(oldtermptr, newtermptr)
+
+ /******************************* UTMP stuffs *******************************/
+
++#ifndef __INTERIX
+ #include <utmp.h>
++#endif
++
+ #ifdef HAS_UTMPX
+
+ # include <utmpx.h>
+@@ -428,6 +435,10 @@ void make_raw(oldtermptr, newtermptr)
+ # define getutid getutxid
+ # define pututline pututxline
+
++# ifdef __INTERIX
++# define ut_xtime ut_tv.tv_sec
++# endif
++
+ #endif
+
+ #ifdef USE_SYSV_UTMP
+@@ -507,8 +518,10 @@ void addutmp()
+ utmp.ut_pid = getpid();
+
+ # ifdef HAS_UTMPX
++# ifndef __INTERIX
+ utmpx.ut_syslen = 1;
+ utmpx.ut_session = getsid(0);
++# endif
+ utmpx.ut_tv.tv_usec = 0;
+ # endif
+