summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-bo
blob: cc290f91f6c9a21b26ddbfef565a19504160ce05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-bo,v 1.2 2009/12/10 20:35:57 abs Exp $

--- lib/libxview/misc/portable.h.orig	1993-06-29 05:16:34.000000000 +0000
+++ lib/libxview/misc/portable.h
@@ -10,6 +10,7 @@
 #ifndef xview_portable_h_DEFINED
 #define xview_portable_h_DEFINED
 
+#include <sys/param.h>
 #include <xview/attr.h>
 
 #if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
@@ -70,7 +71,11 @@ EXTERN_FUNCTION (Attr_avlist copy_va_to_
 #define	XV_USE_TERMIOS
 #define	XV_USE_SVR4_PTYS
 #else	/* SVR4 */
+#if (defined(BSD) && (BSD >= 199103))
+#define XV_USE_TERMIOS
+#else
 #undef	XV_USE_TERMIOS
+#endif
 #undef	XV_USE_SVR4_PTYS
 #endif	/* SVR4 */