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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
--- mktable.c-- Wed Jan 22 16:38:33 1997
+++ mktable.c Mon Feb 24 14:37:28 1997
@@ -20,10 +20,15 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
+#if (!defined(BSD) || (BSD < 199506))
#include <malloc.h>
+#endif
#include "mktable.h"
#include "config.h"
#ifdef CURSES_DRIVER
@@ -395,7 +400,11 @@
#define postoparams(pos,i1,i2,i3,i4) \
((i1)=(pos)>>12),((i2)=((pos)>>8)&15),((i3)=((pos)>>4)&15),((i4)=((pos))&15)
+#ifdef isset
+#undef isset
+#endif
#define isset(n,i) (((i)&1<<(n))!=0)
+
#define canset(n,i) (!isset(n,i)&&isset(n+1,i))
static int width = 8;
void values(int c, int *v1, int *v2, int *v3, int *v4)
--- timers.c-- Mon Jan 27 13:15:55 1997
+++ timers.c Mon Feb 24 14:33:42 1997
@@ -25,11 +25,18 @@
#include <libc.h>
#else
#include "aconfig.h"
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+#if (!defined(BSD) || (BSD < 199506))
#include <malloc.h>
+#endif
#include <stdio.h>
#include <unistd.h>
#ifndef _MAC
+#if (!defined(BSD) || (BSD < 199506))
#include <malloc.h>
+#endif
#endif
#ifdef HAVE_SETITIMER
#include <signal.h>
--- ui_curses.c-- Mon Feb 24 14:21:41 1997
+++ ui_curses.c Mon Feb 24 12:57:00 1997
@@ -21,9 +21,14 @@
*/
#include "aconfig.h"
#ifdef CURSES_DRIVER
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#include <stdio.h>
#include <stdlib.h>
+#if (!defined(BSD) || (BSD < 199506))
#include <malloc.h>
+#endif
#include <signal.h>
#include <sys/stat.h>
#include <unistd.h>
--- xlib.c-- Mon Feb 24 14:21:54 1997
+++ xlib.c Mon Feb 24 14:34:38 1997
@@ -26,7 +26,12 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+#if (!defined(BSD) || (BSD < 199506))
#include <malloc.h>
+#endif
#include "xlib.h"
#ifdef AMIGA
#define XFlush(x) while(0)
@@ -264,7 +269,9 @@
XDestroyImage(d->image[0]);
XDestroyImage(d->image[1]);
}
+#ifndef MAX
#define MAX(x,y) ((x)>(y)?(x):(y))
+#endif
xdisplay *xalloc_display(char *s, int x, int y, xlibparam * params)
--- zoom.c-- Mon Feb 24 12:49:33 1997
+++ zoom.c Mon Feb 24 12:56:18 1997
@@ -25,10 +25,15 @@
#include <libc.h>
#include <stdio.h>
#else
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
#include <stdlib.h>
#include <stdio.h>
#ifndef _MAC
+#if (!defined(BSD) || (BSD < 199506))
#include <malloc.h>
+#endif
#endif
#include "aconfig.h"
#ifdef HAVE_LIMITS_H
|