#include "lyxlib.h"
-int lyx::mkdir(string const & pathname, mode_t mode)
+int lyx::mkdir(string const & pathname, unsigned long int mode)
{
- return ::mkdir(pathname.c_str(), mode);
+ // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
+ return ::mkdir(pathname.c_str(), mode_t(mode));
}