2013-09-26 17:14:40 +02:00

16 lines
501 B
Plaintext

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