From b1646eb0a38772dd7e16eb9e34dd6a04d5679c9c Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez <mroberto@users.sourceforge.net> Date: Wed, 11 Apr 2012 17:41:51 -0300 Subject: [PATCH] Add errno.h inclusion in unixutil.h only in WIN32 (cherry picked from commit c661180d150231591fa39e7cff85d19155cdd327) --- upnp/src/inc/unixutil.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upnp/src/inc/unixutil.h b/upnp/src/inc/unixutil.h index 30e4269..e94afff 100644 --- a/upnp/src/inc/unixutil.h +++ b/upnp/src/inc/unixutil.h @@ -35,9 +35,10 @@ /* Unix-specific network utilities */ #include "UpnpInet.h" -#include <errno.h> #ifdef WIN32 + #include <errno.h> + typedef int socklen_t; #ifndef EAFNOSUPPORT /* VS2010 has this defined */ #define EAFNOSUPPORT 97