pkgsrc/misc/screen/patches/patch-aq
rillig 7f6a676139 Added patch-aq, which makes screen use the setenv() function with three
parameters instead of the one with two parameters. The setenv() function
has been added to Solaris recently, so this wasn't necessary before.
Should fix PR 32273.
2005-12-10 23:28:13 +00:00

15 lines
501 B
Text

$NetBSD: patch-aq,v 1.1 2005/12/10 23:28:13 rillig Exp $
In Solaris 10, the setenv() function has been added.
--- misc.c.orig 2003-12-05 14:45:41.000000000 +0100
+++ misc.c 2005-12-11 00:23:50.130241500 +0100
@@ -613,7 +613,7 @@ char *value;
*/
# endif /* NEEDSETENV */
#else /* USESETENV */
-# if defined(linux) || defined(__convex__) || (BSD >= 199103)
+# if defined(linux) || defined(__convex__) || (BSD >= 199103) || defined(__sun)
setenv(var, value, 1);
# else
setenv(var, value);