From 9ea1bae7e4d8ac4e6b0e7d7f615ab95305462cf0 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 22 Nov 1993 22:45:43 +0000 Subject: [PATCH] Fix conditionalization of HAVE_FTRUNCATE -- it was broken for those operating systems that were both POSIX and BSD. Also, define TIOCSIGSEND on several operating systems that support it under a different, undocumented name: TIOCSIG. --- v7/src/microcode/ux.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/v7/src/microcode/ux.h b/v7/src/microcode/ux.h index 0d9a15c52..e1833a123 100644 --- a/v7/src/microcode/ux.h +++ b/v7/src/microcode/ux.h @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: ux.h,v 1.55 1993/11/08 21:45:53 gjr Exp $ +$Id: ux.h,v 1.56 1993/11/22 22:45:43 cph Exp $ Copyright (c) 1988-1993 Massachusetts Institute of Technology @@ -174,11 +174,7 @@ extern int EXFUN (kill, (pid_t, int)); /* #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) +#if defined(_SUNOS4) || defined(sun4) || defined(_NEXTOS) #define VOID_SIGNAL_HANDLERS #endif @@ -288,10 +284,23 @@ extern int EXFUN (kill, (pid_t, int)); #ifdef _ULTRIX #define SYSTEM_VARIANT "Ultrix" +#define HAVE_FTRUNCATE #endif #ifdef _NEXTOS #define SYSTEM_VARIANT "NeXT" +#define HAVE_FTRUNCATE +#define TIOCSIGSEND TIOCSIG +#endif + +#ifdef __osf__ +#define HAVE_FTRUNCATE +#define TIOCSIGSEND TIOCSIG +#endif + +#ifdef _SUNOS4 +#define HAVE_FTRUNCATE +#define TIOCSIGSEND TIOCSIG #endif #ifdef apollo -- 2.25.1