summaryrefslogtreecommitdiff
path: root/net/tn5250/patches/patch-aa
blob: 457149984fc7c2994f4faaadc59778f18fdc7816 (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
25
26
27
28
$NetBSD: patch-aa,v 1.4 2001/06/20 04:45:00 jlam Exp $

--- cursesterm.cc.orig	Mon Apr  5 12:25:45 1999
+++ cursesterm.cc
@@ -19,13 +19,22 @@
 #include "config.h"
 #include <assert.h>
 #include <sys/time.h>
-#include <curses.h>
+#include <sys/param.h>
+#if (defined(BSD) && BSD >= 199306)
+#include <unistd.h>
+#endif
+#include <ncurses.h>
 #include <string.h>
 #include <ctype.h>
 #include "utility.h"
 #include "displaybuf.h"
 #include "terminal.h"
 #include "cursesterm.h"
+
+/* workaround for NetBSD curses */
+#ifndef A_VERTICAL
+#define A_VERTICAL 0x2000
+#endif
 
 /* Mapping of 5250 colors to curses colors */
 #define A_5250_GREEN    (COLOR_PAIR(COLOR_GREEN))