diff options
Diffstat (limited to 'x11/9term/patches/patch-af')
-rw-r--r-- | x11/9term/patches/patch-af | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/x11/9term/patches/patch-af b/x11/9term/patches/patch-af new file mode 100644 index 00000000000..af015a20fce --- /dev/null +++ b/x11/9term/patches/patch-af @@ -0,0 +1,38 @@ +$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 <sys/param.h> ++ ++#if (defined(BSD) && BSD >= 199306) + #define POSIXPTYS + #define BSDPTYS + #endif |