summary refs log tree commit diff stats
path: root/src/common/chanopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/chanopt.c')
-rw-r--r--src/common/chanopt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/chanopt.c b/src/common/chanopt.c
index 198ebe6c..8e8b0312 100644
--- a/src/common/chanopt.c
+++ b/src/common/chanopt.c
@@ -8,7 +8,9 @@
 #include <fcntl.h>
 #include <errno.h>
 
-#ifndef WIN32
+#ifdef WIN32
+#include <io.h>
+#else
 #include <unistd.h>
 #endif