summaryrefslogtreecommitdiff
path: root/ext/libnatpmp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2015-12-21 13:14:48 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2015-12-21 13:14:48 -0800
commit24cc0904fa08e655030ea90e374ff24315f1029a (patch)
tree88317afe24aec3e4f7e2f0e9c21e126ab691b6ee /ext/libnatpmp
parentc8056452b838e162b13531886606557d76957c60 (diff)
downloadinfinitytier-24cc0904fa08e655030ea90e374ff24315f1029a.tar.gz
infinitytier-24cc0904fa08e655030ea90e374ff24315f1029a.zip
1.1.2 Windows build fixes, tweaks, etc.
Diffstat (limited to 'ext/libnatpmp')
-rw-r--r--ext/libnatpmp/natpmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/libnatpmp/natpmp.c b/ext/libnatpmp/natpmp.c
index 3a498129..9843c41e 100644
--- a/ext/libnatpmp/natpmp.c
+++ b/ext/libnatpmp/natpmp.c
@@ -39,8 +39,12 @@ POSSIBILITY OF SUCH DAMAGE.
#include <winsock2.h>
#include <ws2tcpip.h>
#include <io.h>
+#ifndef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
+#endif
+#ifndef ECONNREFUSED
#define ECONNREFUSED WSAECONNREFUSED
+#endif
#include "wingettimeofday.h"
#define gettimeofday natpmp_gettimeofday
#else