summaryrefslogtreecommitdiff
path: root/src/tunDevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tunDevice.h')
-rw-r--r--src/tunDevice.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tunDevice.h b/src/tunDevice.h
index 99f3d4b..c07f813 100644
--- a/src/tunDevice.h
+++ b/src/tunDevice.h
@@ -36,6 +36,10 @@
#include "deviceConfig.hpp"
#include "threadUtils.hpp"
+#ifdef _MSC_VER
+#include <windows.h>
+#endif
+
class TunDevice
{
public:
@@ -71,6 +75,10 @@ private:
int fix_return(int ret, size_t pi_length);
int fd_;
+#ifdef _MSC_VER
+ HANDLE handle_;
+#endif
+
DeviceConfig conf_;
bool with_pi_;
std::string actual_name_;