summaryrefslogtreecommitdiff
path: root/missing/flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/flock.c')
-rw-r--r--missing/flock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/missing/flock.c b/missing/flock.c
index 7a5a58aaa7..2219d176d1 100644
--- a/missing/flock.c
+++ b/missing/flock.c
@@ -1,6 +1,7 @@
#include "config.h"
-#if defined HAVE_FCNTL && defined HAVE_FCNTL_H
+#if defined _WIN32
+#elif defined HAVE_FCNTL && defined HAVE_FCNTL_H
/* These are the flock() constants. Since this sytems doesn't have
flock(), the values of the constants are probably not available.
@@ -118,7 +119,7 @@ flock(int fd, int operation)
return -1;
}
}
-#elif !defined _WIN32
+#else
int
flock(int fd, int operation)
{