$NetBSD: patch-af,v 1.1 2001/05/01 09:35:42 agc Exp $ --- 9term/9term.h.orig Thu Dec 15 14:49:15 1994 +++ 9term/9term.h Wed Oct 1 09:50:47 1997 @@ -31,7 +31,7 @@ extern int isig; extern void specialchars(int); -extern int setenv(char *, char *, int); +extern int O_setenv(char *, char *, int); extern void init_display(int *, char **, char**, char*); #ifdef NEEDVARARG extern void error(); @@ -58,13 +58,24 @@ extern void setborder(void); extern void ctlmsg(Event *); +#ifndef MAX #define MAX(x, y) (((x) > (y)) ? (x) : (y)) +#endif +#ifndef MIN #define MIN(x, y) (((x) < (y)) ? (x) : (y)) +#endif #ifndef NULL #define NULL ((void *)0) #endif #ifdef SUNOS +#define POSIXPTYS +#define BSDPTYS +#endif + +#include + +#if (defined(BSD) && BSD >= 199306) #define POSIXPTYS #define BSDPTYS #endif