diff options
Diffstat (limited to 'node/UdpSocket.hpp')
-rw-r--r-- | node/UdpSocket.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node/UdpSocket.hpp b/node/UdpSocket.hpp index 6b7d488c..d8467f64 100644 --- a/node/UdpSocket.hpp +++ b/node/UdpSocket.hpp @@ -35,6 +35,10 @@ #include "InetAddress.hpp" #include "Mutex.hpp" +#ifdef __WINDOWS__ +#include <WinSock2.h> +#endif + namespace ZeroTier { /** @@ -100,7 +104,11 @@ private: void (*_packetHandler)(UdpSocket *,void *,const InetAddress &,const void *,unsigned int); void *_arg; int _localPort; +#ifdef __WINDOWS__ + volatile SOCKET _sock; +#else volatile int _sock; +#endif bool _v6; Mutex _sendLock; }; |