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
|
$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
|