summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilApp.cpp
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-12-12 16:01:27 +0000
committerDave Chapman <dave@dchapman.com>2006-12-12 16:01:27 +0000
commit27b2e7502c5e61661a8d71ecec0bc8ff9b38ee12 (patch)
tree4af862c745a4de0cc5d64c4ebab1523196f93fdc /rbutil/rbutilApp.cpp
parent6581146eb110b5b19e1492a1912379ba2eb9b49d (diff)
downloadrockbox-27b2e7502c5e61661a8d71ecec0bc8ff9b38ee12.tar.gz
rockbox-27b2e7502c5e61661a8d71ecec0bc8ff9b38ee12.zip
Unix targets require a second (mode) parameter to wxMkdir. rbutil now compiles cleanly for me on Linux with the just-released wxWidgets 2.8.0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11735 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilApp.cpp')
-rw-r--r--rbutil/rbutilApp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilApp.cpp b/rbutil/rbutilApp.cpp
index 5a9e3bcada..971d2f428f 100644
--- a/rbutil/rbutilApp.cpp
+++ b/rbutil/rbutilApp.cpp
@@ -23,7 +23,7 @@ bool rbutilFrmApp::OnInit()
if (! wxDirExists(buf) )
{
wxLogNull lognull;
- if (! wxMkdir(buf))
+ if (! wxMkdir(buf, 0777))
{
wxLogFatalError(_("Can't create data directory %s"),
buf.c_str());
@@ -43,7 +43,7 @@ bool rbutilFrmApp::OnInit()
buf = buf.Left(buf.Len() - 10);
buf.Append(wxT("download"));
- if (! wxDirExists(buf) ) wxMkdir(buf);
+ if (! wxDirExists(buf) ) wxMkdir(buf, 0777);
wxFileSystem::AddHandler(new wxInternetFSHandler);
wxFileSystem::AddHandler(new wxZipFSHandler);