--- 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 +#endif #include #include #include +#if (!defined(BSD) || (BSD < 199506)) #include +#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 #else #include "aconfig.h" +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #include #ifndef _MAC +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #endif #ifdef HAVE_SETITIMER #include --- 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 +#endif #include #include +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #include #include #include --- xlib.c-- Mon Feb 24 14:21:54 1997 +++ xlib.c Mon Feb 24 14:34:38 1997 @@ -26,7 +26,12 @@ #include #include #include +#ifdef HAVE_SYS_PARAM_H +#include +#endif +#if (!defined(BSD) || (BSD < 199506)) #include +#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 #include #else +#ifdef HAVE_SYS_PARAM_H +#include +#endif #include #include #ifndef _MAC +#if (!defined(BSD) || (BSD < 199506)) #include +#endif #endif #include "aconfig.h" #ifdef HAVE_LIMITS_H