--- flightgear-2.4.0~/debian/changelog
+++ flightgear-2.4.0/debian/changelog
@@ -1,3 +1,12 @@
+flightgear (2.4.0-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix build failure with GCC 4.7.  Closes: #667167.
+    - utils/TerraSync/terrasync.cxx: Include <unistd.h> for
+      write, getpid, sleep.
+
+ -- Matej Vela <vela@debian.org>  Sun, 20 May 2012 01:38:16 +0100
+
 flightgear (2.4.0-1) unstable; urgency=low
 
   * New upstream release. Closes: #638588.
--- flightgear-2.4.0~/utils/TerraSync/terrasync.cxx
+++ flightgear-2.4.0/utils/TerraSync/terrasync.cxx
@@ -29,9 +29,12 @@
 #include <windows.h>
 #endif
 
+#if HAVE_UNISTD_H
+#include <unistd.h>             // write(), getpid(), sleep()
+#endif
+
 #ifdef __MINGW32__
 #include <time.h>
-#include <unistd.h>
 #elif defined(_MSC_VER)
 #   include <io.h>
 #   ifndef HAVE_SVN_CLIENT_H
