summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/openbsd-compat/setenv.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-04-20 09:35:04 +0000
committerdes <des@FreeBSD.org>2004-04-20 09:35:04 +0000
commit13038249fe2534a8bbf8071e1ce86a5ac3f138ba (patch)
tree9c4c356c89ba7c02d24dd9e9ae86f4b0aa30e4ad /crypto/openssh/openbsd-compat/setenv.c
parent52a5485343646a98c4b521830a1c8b2a18aad3fc (diff)
parentc69db9c5a2d88a51f8d2394cf37717ba93f07152 (diff)
downloadFreeBSD-src-13038249fe2534a8bbf8071e1ce86a5ac3f138ba.zip
FreeBSD-src-13038249fe2534a8bbf8071e1ce86a5ac3f138ba.tar.gz
This commit was generated by cvs2svn to compensate for changes in r128456,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/openssh/openbsd-compat/setenv.c')
-rw-r--r--crypto/openssh/openbsd-compat/setenv.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/openssh/openbsd-compat/setenv.c b/crypto/openssh/openbsd-compat/setenv.c
index b7ba0ce..c3a86c6 100644
--- a/crypto/openssh/openbsd-compat/setenv.c
+++ b/crypto/openssh/openbsd-compat/setenv.c
@@ -30,7 +30,7 @@
*/
#include "includes.h"
-#ifndef HAVE_SETENV
+#if !defined(HAVE_SETENV) || !defined(HAVE_UNSETENV)
#if defined(LIBC_SCCS) && !defined(lint)
static char *rcsid = "$OpenBSD: setenv.c,v 1.6 2003/06/02 20:18:38 millert Exp $";
@@ -77,6 +77,7 @@ __findenv(name, offset)
return (NULL);
}
+#ifndef HAVE_SETENV
/*
* setenv --
* Set the value of the environmental variable "name" to be
@@ -138,7 +139,9 @@ setenv(name, value, rewrite)
;
return (0);
}
+#endif /* HAVE_SETENV */
+#ifndef HAVE_UNSETENV
/*
* unsetenv(name) --
* Delete environmental variable "name".
@@ -157,5 +160,6 @@ unsetenv(name)
if (!(*P = *(P + 1)))
break;
}
+#endif /* HAVE_UNSETENV */
-#endif /* HAVE_SETENV */
+#endif /* !defined(HAVE_SETENV) || !defined(HAVE_UNSETENV) */
OpenPOWER on IntegriCloud