Browse Source

*** empty log message ***

David Rose 25 years ago
parent
commit
8e88d55b5a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dtool/src/dtoolutil/executionEnvironment.cxx

+ 2 - 0
dtool/src/dtoolutil/executionEnvironment.cxx

@@ -150,6 +150,7 @@ get_ptr() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void ExecutionEnvironment::
 void ExecutionEnvironment::
 read_environment_variables() {
 read_environment_variables() {
+#ifdef PREREAD_ENVIRONMENT
 #if defined(HAVE_PROC_SELF_ENVIRON)
 #if defined(HAVE_PROC_SELF_ENVIRON)
   // In Linux, and possibly in other systems, we might not be able to
   // In Linux, and possibly in other systems, we might not be able to
   // use getenv() at static init time.  However, we may be lucky and
   // use getenv() at static init time.  However, we may be lucky and
@@ -188,6 +189,7 @@ read_environment_variables() {
 #else
 #else
   cerr << "Warning: environment variables unavailable to dconfig.\n";
   cerr << "Warning: environment variables unavailable to dconfig.\n";
 #endif
 #endif
+#endif // PREREAD_ENVIRONMENT
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////