Patchwork w32/slirp: Undefine error constants before their redefinition

login
register
mail settings
Submitter Jan Kiszka
Date March 28, 2012, 7:05 p.m.
Message ID <4F7360FD.5050707@siemens.com>
Download mbox | patch
Permalink /patch/149346/
State New
Headers show

Comments

Jan Kiszka - March 28, 2012, 7:05 p.m.
Less warnings for your console.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

I'll carry this in my queue.

 slirp/slirp.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/slirp/slirp.h b/slirp/slirp.h
index 2098b20..46bfe46 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -15,6 +15,12 @@  typedef char *caddr_t;
 # include <sys/timeb.h>
 # include <iphlpapi.h>
 
+# undef EWOULDBLOCK
+# undef EINPROGRESS
+# undef ENOTCONN
+# undef EHOSTUNREACH
+# undef ENETUNREACH
+# undef ECONNREFUSED
 # define EWOULDBLOCK WSAEWOULDBLOCK
 # define EINPROGRESS WSAEINPROGRESS
 # define ENOTCONN WSAENOTCONN