From 1ab7d0fd0b21514a243db0b602d883acb3372a05 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 30 Jul 2007 20:46:04 +0000 Subject: 23725: use setenv()/unsetenv() for environment memory management --- Src/system.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Src/system.h') 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 -- cgit 1.4.1