On 05/12/2011 12:30 PM, no-re...@cfengine.com wrote: >> Ran into another hitch in 3.1.5 - a dependency on unsetenv(), which is also >> included in the Portability Package. I just changed pub/unsetenv.c where it >> said: >> >> #ifdef __sun >> >> ... to ... >> >> #if defined(__sun) || defined(__hpux) >> >> ... and it seemed to compile okay. > > That's OK as a private quick fix.
pub/unsetenv.c is already under autoconf's AC_REPLACE_FUNC control, so it is not compiled in at all if unsetenv() is provided by the OS. OTOH, unsetenv() implementation is OS-specific, so having #ifdefs inside the pub/unsetenv.c is unavoidable and not really a problem. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine