On 11/9/2007 4:10 PM, Jeremy Kister wrote:
on Solaris 9, i see:
[...]
vdelivermail.c:910: warning: implicit declaration of function `setenv'
[...]
besides the obvious, what's setenv? Who has this and where? Is there a clear way around this ?

apparently, setenv isn't near as portable as it should be.

http://gcc.gnu.org/ml/libstdc++/2002-03/msg00379.html

looks like we need to test for setenv vs putenv at configure time.

reading the code, is either necessary?
     setenv("SHELL", "/bin/sh", 1);
     args[0] = "/bin/sh"; args[1] = "-c"; args[2] = prog; args[3] = 0;
     sig_catch(SIGPIPE,SIG_DFL);
     execv(*args,args);

why does the environment variable "SHELL" have to be set for in this case?

--

Jeremy Kister
http://jeremy.kister.net./


!DSPAM:4739364d32008721212671!

Reply via email to