summaryrefslogtreecommitdiffstats
path: root/src/rcclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcclock.c')
-rw-r--r--src/rcclock.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rcclock.c b/src/rcclock.c
index e5dda52..b72fd9f 100644
--- a/src/rcclock.c
+++ b/src/rcclock.c
@@ -63,10 +63,18 @@ int rccLock() {
if (!stmp) return -1;
sprintf(stmp,"%s/.rcc/", rcc_home_dir);
+#ifdef _WIN32
+ mkdir(stmp);
+#else
mkdir(stmp, 00755);
+#endif
sprintf(stmp,"%s/.rcc/locks/", rcc_home_dir);
+#ifdef _WIN32
+ mkdir(stmp);
+#else
mkdir(stmp, 00700);
+#endif
sprintf(stmp,"%s/.rcc/locks/rcc.lock", rcc_home_dir);