summaryrefslogtreecommitdiff
path: root/src/common/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/lock.c')
-rw-r--r--src/common/lock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/lock.c b/src/common/lock.c
index 288093c68..0258cbd2c 100644
--- a/src/common/lock.c
+++ b/src/common/lock.c
@@ -2,7 +2,13 @@
#include <stdio.h>
#include <errno.h>
#include <string.h>
+#ifndef WIN32
#include <unistd.h>
+#else
+#include <windows.h>
+#define F_OK 0x0
+#define R_OK 0x4
+#endif
#include "lock.h"
#include "showmsg.h"
#define exists(filename) (!access(filename, F_OK))