]> git.mxchange.org Git - flightgear.git/commitdiff
Frederic Bouvier:
authorehofman <ehofman>
Thu, 9 Sep 2004 08:32:11 +0000 (08:32 +0000)
committerehofman <ehofman>
Thu, 9 Sep 2004 08:32:11 +0000 (08:32 +0000)
Olivier discovered that environment_ctrl.cxx doesn't compile
when ENABLE_THREADS is not defined. The simple patch to correct
that is attached.

src/Environment/environment_ctrl.cxx

index f90e28f0d6f97167b0874eab98403c591405041c..7e7c8cdbe2e61cf40c04c6ef468c0c816710cc93 100644 (file)
@@ -323,9 +323,11 @@ FGMetarEnvironmentCtrl::FGMetarEnvironmentCtrl ()
       fetch_elapsed( 9999.0 ),
       proxy_host( fgGetNode("/sim/presets/proxy/host", true) ),
       proxy_port( fgGetNode("/sim/presets/proxy/port", true) ),
-      proxy_auth( fgGetNode("/sim/presets/proxy/authentication", true) ),
-      _error_dt( 0.0 ),
+      proxy_auth( fgGetNode("/sim/presets/proxy/authentication", true) )
+#if defined(ENABLE_THREADS) && ENABLE_THREADS
+      ,_error_dt( 0.0 ),
       _error_count( 0 )
+#endif
 {
 #if defined(ENABLE_THREADS) && ENABLE_THREADS
     thread = new MetarThread(this);