José, can this go in? It moves the includes out of the lyx namespace and is needed for gcc 3.2. IMO it is a bug that later gcc accepts this code.
Georg
Index: src/support/chdir.C =================================================================== --- src/support/chdir.C (Revision 17252) +++ src/support/chdir.C (Arbeitskopie) @@ -14,9 +14,6 @@ #include "support/filename.h" - -namespace lyx { - #ifdef HAVE_UNISTD_H # include <unistd.h> #endif @@ -25,6 +22,9 @@ namespace lyx { # include <windows.h> #endif + +namespace lyx { + int support::chdir(FileName const & name) { #ifdef _WIN32