about summary refs log tree commit diff
path: root/Src/system.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-07-30 20:46:04 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-07-30 20:46:04 +0000
commit1ab7d0fd0b21514a243db0b602d883acb3372a05 (patch)
tree6ff962b4d11c425d2512e1170579983c978e7ef2 /Src/system.h
parent378c2c7ae7d5c98c856ab60978736f38a168151b (diff)
downloadzsh-1ab7d0fd0b21514a243db0b602d883acb3372a05.tar.gz
zsh-1ab7d0fd0b21514a243db0b602d883acb3372a05.tar.xz
zsh-1ab7d0fd0b21514a243db0b602d883acb3372a05.zip
23725: use setenv()/unsetenv() for environment memory management
Diffstat (limited to 'Src/system.h')
-rw-r--r--Src/system.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Src/system.h b/Src/system.h
index 97db9aab1..af66687fa 100644
--- a/Src/system.h
+++ b/Src/system.h
@@ -693,6 +693,15 @@ struct timezone {
 
 extern char **environ;
 
+/*
+ * We always need setenv and unsetenv in pairs, because
+ * we don't know how to do memory management on the values set.
+ */
+#ifndef HAVE_UNSETENV
+#undef HAVE_SETENV
+#endif
+
+
 /* These variables are sometimes defined in, *
  * and needed by, the termcap library.       */
 #if MUST_DEFINE_OSPEED