summaryrefslogtreecommitdiff
path: root/lib/flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/flock.c')
-rw-r--r--lib/flock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/flock.c b/lib/flock.c
index 8f018e50c..439ff434a 100644
--- a/lib/flock.c
+++ b/lib/flock.c
@@ -26,15 +26,15 @@
#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
-/* _get_osfhandle */
-# include <io.h>
-
/* LockFileEx */
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <errno.h>
+/* _get_osfhandle */
+# include "msvc-nothrow.h"
+
/* Determine the current size of a file. Because the other braindead
* APIs we'll call need lower/upper 32 bit pairs, keep the file size
* like that too.