summaryrefslogtreecommitdiff
path: root/ext/libnatpmp/natpmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/libnatpmp/natpmp.c')
-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