mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
Add miniupnpc builds for Windows, fix some Windows build warnings.
This commit is contained in:
parent
3c54187c40
commit
14264c2d6f
7 changed files with 109 additions and 18 deletions
|
@ -781,7 +781,7 @@ public:
|
|||
// Causes entry to be deleted from list in poll(), ignored elsewhere
|
||||
sws.type = ZT_PHY_SOCKET_CLOSED;
|
||||
|
||||
if (sws.sock >= _nfds) {
|
||||
if ((long)sws.sock >= (long)_nfds) {
|
||||
long nfds = (long)_whackSendSocket;
|
||||
if ((long)_whackReceiveSocket > nfds)
|
||||
nfds = (long)_whackReceiveSocket;
|
||||
|
|
|
@ -40,8 +40,14 @@
|
|||
#include "../node/Utils.hpp"
|
||||
#include "UPNPClient.hpp"
|
||||
|
||||
#include <miniupnpc/miniupnpc.h>
|
||||
#include <miniupnpc/upnpcommands.h>
|
||||
#ifdef __WINDOWS__
|
||||
#ifndef MINIUPNP_STATICLIB
|
||||
#define MINIUPNP_STATICLIB
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "../ext/bin/miniupnpc/include/miniupnpc/miniupnpc.h"
|
||||
#include "../ext/bin/miniupnpc/include/miniupnpc/upnpcommands.h"
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue