Move HAVE_FTRUNCATE from bchdmp.c to ux.h.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Sat, 29 Aug 1992 13:42:55 +0000 (13:42 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Sat, 29 Aug 1992 13:42:55 +0000 (13:42 +0000)
v7/src/microcode/bchdmp.c
v7/src/microcode/ux.h

index 46342978d4fdd1b6a76cc54da0c2a9be1de582d1..f1b26ae39c7ad890143fa9b4abbe0a04d171f516 100644 (file)
@@ -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
 
index 21d8b609e691100cace68fa49efeeffdebddaa4e..8e40555fe886c2aa208d54de60d08f0ac2fc6337 100644 (file)
@@ -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 <sys/time.h>
 #  include <sys/ioctl.h>
-#  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