#include "DispatchResult.h"
#include "FuncRequest.h"
-#include "LyX.h"
#include "LyXAction.h"
#include "frontends/Application.h"
# include <io.h>
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
using namespace std;
using namespace lyx::support;