Article View: gnu.epoch.misc
Article #1328Patches for DEC OSF/1 and ND/Dolphin Uniline.
From: Kjetil Wiekhorst J|rgensen
Date: Sun, 07 Jun 1992 06:10
Date: Sun, 07 Jun 1992 06:10
149 lines
5668 bytes
5668 bytes
Hi.
Included in this message is pacthes that makes Epoch compile and on
Decstation's running DEC OSF/1 and bug fix for setting baud-rate on
ND/Dolphin Uniline. This patches will also be included in the next?
version of GNU Emacs.
The patches is made for Epoch 4.0 patchlevel 2.
--
Kjetil Wiekhorst J{\o}rgensen
<jorgens@solan.unit.no>
diff -crN epoch-4.0p2/ascii/sysdep.c epoch-4.0p2-osf1/ascii/sysdep.c
*** epoch-4.0p2/ascii/sysdep.c Wed Jun 3 10:42:40 1992
--- epoch-4.0p2-osf1/ascii/sysdep.c Fri Jun 5 18:49:31 1992
***************
*** 176,183 ****
--- 176,188 ----
#define TIOCSETP TCSETAF
#endif /* not IBMR2AIX */
+ #ifdef TRITON88
+ #define OSPEED(str) (str.c_cflag & CBAUD >> 16)
+ #define SETOSPEED(str,new) (str.c_cflag = (str.c_cflag & ~CBAUD) | (new) << 16)
+ #else /* !TRITON88 */
#define OSPEED(str) (str.c_cflag & CBAUD)
#define SETOSPEED(str,new) (str.c_cflag = (str.c_cflag & ~CBAUD) | (new))
+ #endif /* !TRITON88 */
#define TABS_OK(str) ((str.c_oflag & TABDLY) != TAB3)
#endif /* HAVE_TERMIO */
diff -crN epoch-4.0p2/src/config/m-pmax.h epoch-4.0p2-osf1/src/config/m-pmax.h
*** epoch-4.0p2/src/config/m-pmax.h Wed Jun 3 10:47:07 1992
--- epoch-4.0p2-osf1/src/config/m-pmax.h Wed Jun 3 23:46:18 1992
***************
*** 29,31 ****
--- 29,36 ----
but it doesn't work right;
and it causes hanging in read_process_output. */
#define BROKEN_O_NONBLOCK
+
+ #ifdef OSF1
+ #undef C_ALLOCA
+ #define HAVE_ALLOCA
+ #endif
diff -crN epoch-4.0p2/src/config/m-triton88.h epoch-4.0p2-osf1/src/config/m-triton88.h
*** epoch-4.0p2/src/config/m-triton88.h Wed Jun 3 10:47:13 1992
--- epoch-4.0p2-osf1/src/config/m-triton88.h Fri Jun 5 18:51:24 1992
***************
*** 1,7 ****
/* m- file for Motorola System V/88 machines
Copyright (C) 1985 Free Software Foundation, Inc.
! This file is not a part of GNU Emacs.
GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY. No author or distributor
--- 1,7 ----
/* m- file for Motorola System V/88 machines
Copyright (C) 1985 Free Software Foundation, Inc.
! This file is a part of GNU Emacs.
GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY. No author or distributor
diff -crN epoch-4.0p2/src/config/s-dec-osf-1.h epoch-4.0p2-osf1/src/config/s-dec-osf-1.h
*** epoch-4.0p2/src/config/s-dec-osf-1.h
--- epoch-4.0p2-osf1/src/config/s-dec-osf-1.h Wed Jun 3 23:51:18 1992
***************
*** 0 ****
--- 1,45 ----
+ /* Definitions file for GNU Emacs running on bsd 4.3
+ Copyright (C) 1985, 1986 Free Software Foundation, Inc.
+
+ This file is not a part of GNU Emacs.
+
+ GNU Emacs is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+
+ GNU Emacs is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNU Emacs; see the file COPYING. If not, write to
+ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+
+ #include "s-bsd4-3.h"
+
+ #ifndef osf1
+ #define osf1
+ #endif
+
+ #undef SYSTEM_TYPE
+ #define SYSTEM_TYPE "DEC OSF/1"
+
+ /* DEC OSF/1 needs dirent.h unlike it's parent os. Ultrix. */
+
+ #define SYSV_SYSTEM_DIR
+
+ /*
+ * Can't compile the assamebly version of alloca.
+ */
+
+ #define HAVE_ALLOCA
+
+ /* Need to define _BSD to make the inlcude files know we're running under
+ * the BSD univers and not the SYSV universe (YUKK!!)
+ */
+
+ #define C_SWITCH_SYSTEM -D_BSD
+ #define LIBS_SYSTEM -lbsd
+ #define LD_SWITCH_SYSTEM -non_shared
diff -crN epoch-4.0p2/src/gettime.h epoch-4.0p2-osf1/src/gettime.h
*** epoch-4.0p2/src/gettime.h Wed Jun 3 10:46:16 1992
--- epoch-4.0p2-osf1/src/gettime.h Fri Jun 5 18:50:59 1992
***************
*** 34,36 ****
--- 34,40 ----
#ifdef DPX2
#include <sys/time.h>
#endif
+
+ #ifdef TRITON88
+ #include <sys/time.h> /* Need both time.h and sys/time.h */
+ #endif
diff -crN epoch-4.0p2/src/sysdep.c epoch-4.0p2-osf1/src/sysdep.c
*** epoch-4.0p2/src/sysdep.c Wed Jun 3 10:46:34 1992
--- epoch-4.0p2-osf1/src/sysdep.c Fri Jun 5 18:50:37 1992
***************
*** 185,192 ****
--- 185,197 ----
#define TIOCSETP TCSETAF
#endif /* not IBMR2AIX */
+ #ifdef TRITON88
+ #define OSPEED(str) (str.c_cflag & CBAUD >> 16)
+ #define SETOSPEED(str,new) (str.c_cflag = (str.c_cflag & ~CBAUD) | (new) << 16)
+ #else /* !TRITON88 */
#define OSPEED(str) (str.c_cflag & CBAUD)
#define SETOSPEED(str,new) (str.c_cflag = (str.c_cflag & ~CBAUD) | (new))
+ #endif /* !TRITON88 */
#define TABS_OK(str) ((str.c_oflag & TABDLY) != TAB3)
#endif /* HAVE_TERMIO */
Technical Details
Message-ID:
<9206070210.AA17692@solan1>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!solan.unit.no!jorgensShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,985564c1816082fb,start X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1992-06-06 14:18:54 PST Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!solan.unit.no!jorgens From: jorgens@solan.unit.no (Kjetil Wiekhorst J|rgensen) Subject: Patches for DEC OSF/1 and ND/Dolphin Uniline. Message-ID: <9206070210.AA17692@solan1> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sun, 7 Jun 1992 06:10:30 GMT Lines: 149