Hi all,

I just wanted to install the APR trunk version on a solaris 2.8 box. But
the compilation failed because of the following error in the file
misc/unix/env.c :

in the section HAVE_PUTENV one closing parenthesis is missing at the end
of the if-statement "if (0 > putenv(..."! It sould be:

...
    if (0 > putenv(apr_pstrcat(pool, envvar, "=", value, NULL)))
        return APR_ENOMEM;
    return APR_SUCCESS;
...

instead of:

APR_DECLARE(apr_status_t) apr_env_set(const char *envvar,
                                      const char *value,
                                      apr_pool_t *pool)
{
#if defined(HAVE_SETENV)

    if (0 > setenv(envvar, value, 1))
        return APR_ENOMEM;
    return APR_SUCCESS;

#elif defined(HAVE_PUTENV)

    if (0 > putenv(apr_pstrcat(pool, envvar, "=", value, NULL))
        return APR_ENOMEM;
    return APR_SUCCESS;

#else
    return APR_ENOTIMPL;
#endif
}



Reply via email to