8744bbe3b0
conventional DEPENDS mechanism. + Avoid hardcoded "/usr/X11R6" in Makefiles + Split patch-ab into multiple patches. Should fix bulk-build problems, as well as getting rid of one more "eccentric" package.
48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
$NetBSD: patch-ab,v 1.2 2001/05/01 09:35:41 agc Exp $
|
|
|
|
--- 9term/9term.c.orig Fri Jun 3 09:35:39 1994
|
|
+++ 9term/9term.c Fri Sep 26 16:45:48 1997
|
|
@@ -10,7 +10,13 @@
|
|
#include <frame.h>
|
|
#include <text.h>
|
|
|
|
+#include <sys/param.h>
|
|
+
|
|
+#if (defined(BSD) && BSD >= 199306)
|
|
+#include <sys/termios.h>
|
|
+#else
|
|
#include <sys/termio.h>
|
|
+#endif
|
|
#include <signal.h>
|
|
#include <sys/stat.h>
|
|
|
|
@@ -153,9 +159,9 @@
|
|
}
|
|
}
|
|
|
|
- setenv("TERM", "9term", 1);
|
|
+ O_setenv("TERM", "9term", 1);
|
|
/* Cope with BSD-oid systems. - cks */
|
|
- setenv("TERMCAP", "9term: :am:bl=^G:do=^J:nl=^J:", 1);
|
|
+ O_setenv("TERMCAP", "9term: :am:bl=^G:do=^J:nl=^J:", 1);
|
|
signal(SIGINT, SIG_IGN);
|
|
|
|
init_display(&argc, argv, cmd, resource);
|
|
@@ -718,7 +724,7 @@
|
|
texthighlight(t, t->length, t->length, F&~D);
|
|
#ifdef REMOTE
|
|
flushstream();
|
|
- killpg(r == quitchar ? SIGQUIT : SIGINT);
|
|
+ O_killpg(r == quitchar ? SIGQUIT : SIGINT);
|
|
#else
|
|
sendrunes(&r, 1);
|
|
#endif
|
|
@@ -804,7 +810,7 @@
|
|
* export a name-value pair to environment
|
|
*/
|
|
int
|
|
-setenv(char *name, char *value, int overwrite)
|
|
+O_setenv(char *name, char *value, int overwrite)
|
|
{
|
|
char *p;
|
|
|