From 2056a30a766648b7d7f60345de8acd618a6e7ea9 Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 8 Jul 2015 11:58:57 +0000 Subject: [PATCH] Fix compilation on VS2010. Closes #183 --- nbase/nbase_winunix.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nbase/nbase_winunix.h b/nbase/nbase_winunix.h index 7c054f56a..3243bc37d 100644 --- a/nbase/nbase_winunix.h +++ b/nbase/nbase_winunix.h @@ -157,7 +157,7 @@ Second, because is not defined, the C++0x header doesn't compile, so we pretend not to have C++0x to avoid it. */ -#if _MSC_VER < 1800 /* Breaks on VS2013 */ +#if _MSC_VER < 1600 /* Breaks on VS2010 and later */ #define _INC_ERRNO /* suppress errno.h */ #define _ERRNO_H_ /* Also for errno.h suppression */ #define _SYSTEM_ERROR_ @@ -246,6 +246,8 @@ #define ENOMEM WSAENOBUFS #undef ENOTSOCK #define ENOTSOCK WSAENOTSOCK +#undef EOPNOTSUPP +#define EOPNOTSUPP WSAEOPNOTSUPP #undef EIO #define EIO WSASYSCALLFAILURE