From f5e515b69d5b49b4c9f555cdb8fc391dc1dd4110 Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Thu, 9 Sep 1993 18:18:54 +0000 Subject: [PATCH] Linux patch. --- v7/src/microcode/bchdmp.c | 4 ++-- v7/src/microcode/unxutl/config | 8 ++++++-- v7/src/microcode/ux.h | 9 +-------- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/v7/src/microcode/bchdmp.c b/v7/src/microcode/bchdmp.c index 2fc48a18c..6acaf589e 100644 --- a/v7/src/microcode/bchdmp.c +++ b/v7/src/microcode/bchdmp.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: bchdmp.c,v 9.71 1993/08/23 02:20:41 gjr Exp $ +$Id: bchdmp.c,v 9.72 1993/09/09 18:12:44 gjr Exp $ Copyright (c) 1987-1993 Massachusetts Institute of Technology @@ -273,7 +273,7 @@ DEFUN (fasdump_exit, (length), long length) #ifdef HAVE_FTRUNCATE { -#ifndef _HPUX +#if (! (defined(_HPUX) || defined(__linux))) /* HP-UX version < 9.0 has the wrong type in the prototype in */ diff --git a/v7/src/microcode/unxutl/config b/v7/src/microcode/unxutl/config index f5f266807..4d15dedce 100755 --- a/v7/src/microcode/unxutl/config +++ b/v7/src/microcode/unxutl/config @@ -1,7 +1,10 @@ #!/bin/sh # Configuration script for MIT Scheme -# $Id: config,v 1.19 1993/06/24 04:22:09 gjr Exp $ +# $Id: config,v 1.20 1993/09/09 18:15:01 gjr Exp $ # Modelled on the configuration script for GNU CC +# The section between lines is the copyright prefix from the GNU CC config. +#---------------------------------------------------------------------- + # Copyright (C) 1988 Free Software Foundation, Inc. #This file is part of GNU CC. @@ -20,6 +23,7 @@ #along with GNU CC; see the file COPYING. If not, write to #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. +#---------------------------------------------------------------------- # # Shell script to create proper links to machine-dependent files in # preparation for compiling gcc. @@ -77,7 +81,7 @@ case $# in cmpint_file=mips.h cmpaux_file=mips.m4 ;; - 386bsd) + linux | 386bsd) system_file=386bsd machine_file=i386 cmpint_file=i386.h diff --git a/v7/src/microcode/ux.h b/v7/src/microcode/ux.h index 2d69bf9ad..251239582 100644 --- a/v7/src/microcode/ux.h +++ b/v7/src/microcode/ux.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: ux.h,v 1.50 1993/08/03 08:30:08 gjr Exp $ +$Id: ux.h,v 1.51 1993/09/09 18:18:54 gjr Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -279,13 +279,6 @@ extern int EXFUN (kill, (pid_t, int)); #ifdef __linux #include #define SYSTEM_VARIANT "Linux" -#undef HAVE_SIGCONTEXT -/* Hacks to put handlers for non-existent signals on SIGSEGV. - (Scheme handles SIGSEGV, SIGBUS, SIGEMT, and SIGSYS the same way anyway: - defsignal (SIGSEGV, "SIGSEGV", dfl_terminate, CORE_DUMP); */ -#define SIGBUS SIGSEGV -#define SIGEMT SIGSEGV -#define SIGSYS SIGSEGV #endif #ifdef _ULTRIX -- 2.25.1