]> granicus.if.org Git - apache/commitdiff
Another of the long term issues cleared up. BeOS can now run
authorDavid Reid <dreid@apache.org>
Wed, 25 Jul 2001 00:49:36 +0000 (00:49 +0000)
committerDavid Reid <dreid@apache.org>
Wed, 25 Jul 2001 00:49:36 +0000 (00:49 +0000)
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

server/util_script.c

index 12e22537ab736ac9ba1b8d7d5227b6f5243e2ce6..f6d3e483f09711c38d88025c91c616a4c54e9154 100644 (file)
@@ -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));