Skip to content

Commit

Permalink
Use Winsock definition of EWOULDBLOCK rather than the POSIX one
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Sep 28, 2019
1 parent 6d5c0db commit 2022f21
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions natpmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ POSSIBILITY OF SUCH DAMAGE.
#include <winsock2.h>
#include <ws2tcpip.h>
#include <io.h>
#ifndef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
#ifdef EWOULDBLOCK
#undef EWOULDBLOCK
#endif
#ifndef ECONNREFUSED
#define ECONNREFUSED WSAECONNREFUSED
#ifdef ECONNREFUSED
#undef ECONNREFUSED
#endif
#define EWOULDBLOCK WSAEWOULDBLOCK
#define ECONNREFUSED WSAECONNREFUSED
#include "wingettimeofday.h"
#define gettimeofday natpmp_gettimeofday
#else
Expand Down

0 comments on commit 2022f21

Please sign in to comment.