summaryrefslogtreecommitdiffstats
path: root/src/rcclock.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2014-06-12 19:03:18 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2014-06-12 19:03:18 +0200
commitf5c9a8080f0932335457fe5cb0dff38c2d491cb5 (patch)
tree26ec33246b846a54a6a52747519ca80c3c1000b7 /src/rcclock.c
parent89f93872d8e024c761cc55335518f7d48d414fdb (diff)
downloadlibrcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.gz
librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.bz2
librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.tar.xz
librcc-f5c9a8080f0932335457fe5cb0dff38c2d491cb5.zip
Mingw compatibility fixes by trialuser
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);