From 7d328e36627099b8f463cc8def2197522d13203f Mon Sep 17 00:00:00 2001 From: "Guillermo J. Rozas" Date: Sat, 29 Aug 1992 13:42:55 +0000 Subject: [PATCH] Move HAVE_FTRUNCATE from bchdmp.c to ux.h. --- v7/src/microcode/bchdmp.c | 8 ++------ v7/src/microcode/ux.h | 9 +++++++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/v7/src/microcode/bchdmp.c b/v7/src/microcode/bchdmp.c index 46342978d..f1b26ae39 100644 --- a/v7/src/microcode/bchdmp.c +++ b/v7/src/microcode/bchdmp.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/Attic/bchdmp.c,v 9.65 1992/06/03 21:54:18 jinx Exp $ +$Id: bchdmp.c,v 9.66 1992/08/29 13:42:55 jinx Exp $ Copyright (c) 1987-1992 Massachusetts Institute of Technology @@ -66,11 +66,7 @@ extern int EXFUN (unlink, (CONST char *)); # define FASDUMP_FILENAME "/tmp/fasdumpXXXXXX" -#if defined(_HPUX) || defined(_SUNOS4) || defined(_ULTRIX) || defined(_SYSV4) -# define HAVE_FTRUNCATE -#endif - -#if (defined(_HPUX) && (_HPUX_VERSION >= 80)) || defined(_SYSV4) +#if (defined(_HPUX) && (_HPUX_VERSION >= 80)) || defined(_SYSV4) || defined(__osf__) # define FTRUNCATE_DECLARED #endif diff --git a/v7/src/microcode/ux.h b/v7/src/microcode/ux.h index 21d8b609e..8e40555fe 100644 --- a/v7/src/microcode/ux.h +++ b/v7/src/microcode/ux.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: ux.h,v 1.37 1992/08/29 13:39:07 jinx Exp $ +$Id: ux.h,v 1.38 1992/08/29 13:41:39 jinx Exp $ Copyright (c) 1988-1992 Massachusetts Institute of Technology @@ -179,7 +179,6 @@ extern void EXFUN (error_system_call, (int code, enum syscall_names name)); #ifdef _osf # include # include -# define HAVE_FTRUNCATE #endif #ifdef sonyrisc @@ -252,6 +251,10 @@ extern void EXFUN (error_system_call, (int code, enum syscall_names name)); /* #define HAVE_WAIT4 */ #define UNION_WAIT_STATUS +#if defined(_SUNOS4) || defined(_ULTRIX) || defined(__osf__) +#define HAVE_FTRUNCATE +#endif + #if defined(_ULTRIX) || defined(_SUNOS4) || defined(sun4) || defined(_NEXTOS) #define VOID_SIGNAL_HANDLERS #endif @@ -298,6 +301,7 @@ extern void EXFUN (error_system_call, (int code, enum syscall_names name)); #define HAVE_BSD_SIGNALS #define HAVE_DUP2 +#define HAVE_FTRUNCATE #define HAVE_MKDIR #define HAVE_RENAME #define HAVE_RMDIR @@ -437,6 +441,7 @@ extern void EXFUN (error_system_call, (int code, enum syscall_names name)); #define SYSTEM_VARIANT "ATT (Vr4)" #define HAVE_FIONREAD +#define HAVE_FTRUNCATE #define HAVE_GETTIMEOFDAY #define HAVE_ITIMER #define HAVE_NICE -- 2.25.1