From: David Reid Date: Wed, 25 Jul 2001 00:49:36 +0000 (+0000) Subject: Another of the long term issues cleared up. BeOS can now run X-Git-Tag: 2.0.22~36 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77d67354c6835f49f610d633b25578d567cd5e0a;p=apache Another of the long term issues cleared up. BeOS can now run perl and other CGI's that rely on .so's for their operation. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89697 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_script.c b/server/util_script.c index 12e22537ab..f6d3e483f0 100644 --- a/server/util_script.c +++ b/server/util_script.c @@ -157,7 +157,7 @@ AP_DECLARE(void) ap_add_common_vars(request_rec *r) conn_rec *c = r->connection; const char *rem_logname; char *env_path; -#if defined(WIN32) || defined(OS2) +#if defined(WIN32) || defined(OS2) || defined(BEOS) char *env_temp; #endif const char *host; @@ -241,6 +241,12 @@ AP_DECLARE(void) ap_add_common_vars(request_rec *r) } #endif +#ifdef BEOS + if ((env_temp = getenv("LIBRARY_PATH")) != NULL) { + apr_table_addn(e, "LIBRARY_PATH", env_temp); + } +#endif + apr_table_addn(e, "SERVER_SIGNATURE", ap_psignature("", r)); apr_table_addn(e, "SERVER_SOFTWARE", ap_get_server_version()); apr_table_addn(e, "SERVER_NAME", ap_get_server_name(r));