From 107f5cefd626977f49ec2345fa5517cab3012761 Mon Sep 17 00:00:00 2001
From: Frederic Bouvier <fredfgfs01@free.fr>
Date: Thu, 28 Jun 2012 08:43:09 +0200
Subject: [PATCH] Fix windows build

---
 src/Airports/GenAirports850/scheduler.cxx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Airports/GenAirports850/scheduler.cxx b/src/Airports/GenAirports850/scheduler.cxx
index 6fdcb4db..cdd4fb12 100644
--- a/src/Airports/GenAirports850/scheduler.cxx
+++ b/src/Airports/GenAirports850/scheduler.cxx
@@ -1,5 +1,7 @@
 #include <cstring>
 
+#include <Poco/Environment.h>
+
 #include <simgear/debug/logstream.hxx>
 #include <simgear/misc/sgstream.hxx>
 
@@ -218,10 +220,10 @@ void ProcessList::Launch( string command, string file, AirportInfo* pai, bool la
 
     // Wait 10 seconds for connection
     Timespan timeout( 10, 0 );
-    int retVal = pss->poll( timeout, Net::Socket::SELECT_READ );
+    bool retVal = pss->poll( timeout, Net::Socket::SELECT_READ );
 
     // If we connected - create a new entry
-    if ( retVal == true ) {
+    if ( retVal ) {
         Net::SocketAddress sockaddr;
         Net::StreamSocket sock = pss->acceptConnection( sockaddr );