Article View: gnu.emacs.bug
Article #99955Re: Emacs on SCO UNIX System V/386
From: Fredrik Soderblom
Date: Wed, 11 Apr 1990 15:53
Date: Wed, 11 Apr 1990 15:53
135 lines
4234 bytes
4234 bytes
In article <1990Mar30.142750.9945@ibmpcug.co.uk> nigelw@ibmpcug.co.uk (Nigel Whitfield) writes:
>In article <898*johnsen@sintef.no> johnsen@sintef.no (Bernt Marius Johnsen) writes:
>> Does anyone know of a successful port of Emacs to
>> SCO UNIX System V/386?
>>
>> My attempt crashed when compiling sysdep.c.
>>
>
>Mine too; I don't believe it'd be impossible to get this thing working -
>surely someone out there must have done it. If you have, I'd love to know.
I have enclosed the fixes I applied to GNU Emacs 18.55, to make it
compile & work under SCO Unix System V 3.2.
----------------- cut -----------------
*** old/s-usg5-3.h Sat May 13 00:00:00 1989
--- s-usg5-3.h Fri Apr 6 16:45:59 1990
***************
*** 27,30 ****
#define USG /* System III, System V, etc */
-
#define USG5
--- 27,30 ----
#define USG /* System III, System V, etc */
#define USG5
+ #define SCOUNIX
***************
*** 74,78 ****
! /* Some versions of V.3 have this, but not all.
! #define HAVE_PTYS
! #define SYSV_PTYS */
--- 74,79 ----
! /* Some versions of V.3 have this, but not all. */
!
! #define HAVE_PTYS
! #define SYSV_PTYS
*** old/ymakefile Mon Apr 9 16:32:36 1990
--- ymakefile Mon Apr 9 16:12:45 1990
***************
*** 23,29 ****
/* on Xenix, replace double-dot below with $(dot)$(dot) */
! lispdir = ../lisp/
! etcdir = ../etc/
! shortnamesdir = ../shortnames/
! cppdir = ../cpp/
! oldXMenudir = ../oldXMenu/
--- 23,29 ----
/* on Xenix, replace double-dot below with $(dot)$(dot) */
! lispdir = $(dot)$(dot)/lisp/
! etcdir = $(dot)$(dot)/etc/
! shortnamesdir = $(dot)$(dot)/shortnames/
! cppdir = $(dot)$(dot)/cpp/
! oldXMenudir = $(dot)$(dot)/oldXMenu/
*** old/process.c Mon Aug 7 00:00:00 1989
--- process.c Sat Apr 7 15:57:38 1990
***************
*** 81,83 ****
--- 81,87 ----
#include <sys/tty.h>
+ #ifdef SCOUNIX
+ #include <sys/vty.h>
+ #else
#include <sys/pty.h>
+ #endif
#endif
*** old/sysdep.c Tue Jan 30 11:49:00 1990
--- sysdep.c Mon Apr 9 16:32:04 1990
***************
*** 130,131 ****
--- 130,135 ----
+ #ifdef SCOUNIX
+ #undef TIOCGETC /* Avoid confusing some conditionals that test this. */
+ #endif
+
#ifndef HAVE_TERMIO
***************
*** 152,154 ****
If this #include gets an error, just delete it. */
! #include <sys/sioctl.h>
#endif
--- 156,158 ----
If this #include gets an error, just delete it. */
! /* #include <sys/sioctl.h> */
#endif
***************
*** 960,962 ****
--- 964,970 ----
#ifdef TIOCGWINSZ
+ #ifdef SCOUNIX
+ struct termcb size;
+ #else /* not SCOUNIX */
struct winsize size;
+ #endif /* not SCOUNIX */
*widthp = 0;
***************
*** 965,966 ****
--- 973,981 ----
return;
+ #ifdef SCOUNIX
+ if ((unsigned) size.st_ccol > MScreenWidth
+ || (unsigned) size.st_crow > MScreenLength)
+ return;
+ *widthp = size.st_ccol;
+ *heightp = size.st_crow;
+ #else /* not SCOUNIX */
if ((unsigned) size.ws_col > MScreenWidth
***************
*** 970,971 ****
--- 985,987 ----
*heightp = size.ws_row;
+ #endif /* not SCOUNIX */
#else /* not TIOCGWNSIZ */
----------------- cut -----------------
__
/- rodo!
"Memory is like an orgasm, It's better when you don't have to fake it."
/ Seymore Cray
______________________________________________________________
Databolin AB UUCP: ...!mcsun!sunic!dbhxsto!frso
Fredrik Soderblom Internet: frso@dbab.se
Box 11564
S-100 61 STOCKHOLM
S W E D E N
Technical Details
Message-ID:
<158@dbhxsto.dbab.se>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!dbab!frsoReferences:
<1990Mar30.142750.9945@ibmpcug.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,4994b65f0577d4a9 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-04-11 08:53:07 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!dbab!frso From: frso@dbab.se (Fredrik Soderblom) Newsgroups: gnu.emacs.bug Subject: Re: Emacs on SCO UNIX System V/386 Message-ID: <158@dbhxsto.dbab.se> Date: 11 Apr 90 15:53:07 GMT References: <1990Mar30.142750.9945@ibmpcug.co.uk> Reply-To: frso@dbhxsto.UUCP (Fredrik Soderblom) Organization: Databolin AB, Stockholm, Sweden Lines: 135 Posted: Wed Apr 11 16:53:07 1990