summaryrefslogtreecommitdiff
path: root/programs/xterm/resize.c
diff options
context:
space:
mode:
authordawes <dawes>1995-03-11 14:02:22 +0000
committerdawes <dawes>1995-03-11 14:02:22 +0000
commitb2ed798677ce5c8009cb219e3c3a859ed2e128e6 (patch)
tree981770e9e8f930b35165a775cdfcce07c0ac592e /programs/xterm/resize.c
parentf1a183e50384d5ebcd712ff559aabef8e1f813bd (diff)
updates
Diffstat (limited to 'programs/xterm/resize.c')
-rw-r--r--programs/xterm/resize.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/programs/xterm/resize.c b/programs/xterm/resize.c
index d981c72e0..e5db68ddf 100644
--- a/programs/xterm/resize.c
+++ b/programs/xterm/resize.c
@@ -1,6 +1,6 @@
/*
* $XConsortium: resize.c,v 1.31 94/11/30 23:51:18 kaleb Exp $
- * $XFree86: xc/programs/xterm/resize.c,v 3.3 1994/11/30 20:47:22 dawes Exp $
+ * $XFree86: xc/programs/xterm/resize.c,v 3.4 1995/01/28 16:17:47 dawes Exp $
*/
/*
@@ -50,6 +50,11 @@
#define CANT_OPEN_DEV_TTY
#endif
+#ifdef __EMX__
+#define USE_SYSV_TERMIO
+#define USE_TERMCAP
+#endif
+
#ifdef macII
#define USE_SYSV_TERMIO
#undef SYSV /* pretend to be bsd */
@@ -508,13 +513,13 @@ readstring(fp, buf, str)
{
register int last, c;
SIGNAL_T timeout();
-#if !defined(USG) && !defined(AMOEBA) && !defined(MINIX) && !defined(SCO)
+#if !defined(USG) && !defined(AMOEBA) && !defined(MINIX) && !defined(SCO) && !(__EMX__)
/* What is the advantage of setitimer() over alarm()? */
struct itimerval it;
#endif
signal(SIGALRM, timeout);
-#if defined(USG) || defined(AMOEBA) || defined(MINIX) || defined(SCO)
+#if defined(USG) || defined(AMOEBA) || defined(MINIX) || defined(SCO) || defined(__EMX__)
alarm (TIMEOUT);
#else
bzero((char *)&it, sizeof(struct itimerval));
@@ -533,7 +538,7 @@ readstring(fp, buf, str)
last = str[strlen(str) - 1];
while((*buf++ = getc(fp)) != last)
;
-#if defined(USG) || defined(AMOEBA) || defined(MINIX) || defined(SCO)
+#if defined(USG) || defined(AMOEBA) || defined(MINIX) || defined(SCO) || defined(__EMX__)
alarm (0);
#else
bzero((char *)&it, sizeof(struct itimerval));