summaryrefslogtreecommitdiff
path: root/src/common/lock.c
diff options
context:
space:
mode:
authorcodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-31 20:04:54 +0000
committercodemaster <codemaster@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-03-31 20:04:54 +0000
commitd8c2d5137ba9263cb7ff600f63dbb881341b5842 (patch)
tree1045ccc2b60b147331565679f4cb24ef7543ebf1 /src/common/lock.c
parent7d172f8f05235d91a896dd4cf6a1e658ce8dbbfa (diff)
downloadhercules-d8c2d5137ba9263cb7ff600f63dbb881341b5842.tar.gz
hercules-d8c2d5137ba9263cb7ff600f63dbb881341b5842.tar.bz2
hercules-d8c2d5137ba9263cb7ff600f63dbb881341b5842.tar.xz
hercules-d8c2d5137ba9263cb7ff600f63dbb881341b5842.zip
common/lock.c: Fixed an error dealing with unistd.h not being Windows' standard.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1361 54d463be-8e91-2dee-dedb-b68131a5f0ec
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))