Fix conditionalization of HAVE_FTRUNCATE -- it was broken for those
authorChris Hanson <org/chris-hanson/cph>
Mon, 22 Nov 1993 22:45:43 +0000 (22:45 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 22 Nov 1993 22:45:43 +0000 (22:45 +0000)
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

index 0d9a15c5261750962052e235192225cd4fc066e9..e1833a123c0192e5bcf3e3cf5f036e0ed721db59 100644 (file)
@@ -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