-#include <config.h>
+/**
+ * \file chdir.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
-#include <unistd.h>
+#include <config.h>
#include "support/lyxlib.h"
-int lyx::chdir(char const * name)
-{
-#ifndef __EMX__
- return ::chdir(name);
-#else
- return ::_chdir2(name);
-#endif
-}
+#include <unistd.h>
-int lyx::chdir(string const & name)
+int lyx::support::chdir(std::string const & name)
{
#ifndef __EMX__
return ::chdir(name.c_str());