-* [Bug 1465] Make sure time from TS2100 is not invalid (backport from -dev).
+* [Bug 1465] Make sure time from TS2100 is not invalid (backport from
+ ntp-dev).
* [Bug 1528] Fix EDITLINE_LIBS link order for ntpq and ntpdc.
+* [Bug 1534] win32/include/isc/net.h conflicts with VC++ 2010 errno.h.
+* [Bug 1535] "restrict -4 default" and "restrict -6 default" ignored.
* Remove --with-arlib from br-flock.
---
#ifndef ISC_NET_H
#define ISC_NET_H 1
+#include <errno.h>
+
/*
* Also define LWRES_IPV6_H to keep it from being included if liblwres is
* being used, or redefinition errors will occur.
* Windows Sockets errors redefined as regular Berkeley error constants.
* These are usually commented out in Windows NT to avoid conflicts with errno.h.
* Use the WSA constants instead.
+ * Starting with VC9 (VC++ 2010) many of these are defined incompatibly
+ * by errno.h -- #undef the conflicting values, which are not relevant to
+ * Win32.
*/
+#undef EWOULDBLOCK
#define EWOULDBLOCK WSAEWOULDBLOCK
+#undef EINPROGRESS
#define EINPROGRESS WSAEINPROGRESS
+#undef EALREADY
#define EALREADY WSAEALREADY
+#undef ENOTSOCK
#define ENOTSOCK WSAENOTSOCK
+#undef EDESTADDRREQ
#define EDESTADDRREQ WSAEDESTADDRREQ
+#undef EMSGSIZE
#define EMSGSIZE WSAEMSGSIZE
+#undef EPROTOTYPE
#define EPROTOTYPE WSAEPROTOTYPE
+#undef ENOPROTOOPT
#define ENOPROTOOPT WSAENOPROTOOPT
+#undef EPROTONOSUPPORT
#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
+#undef EOPNOTSUPP
#define EOPNOTSUPP WSAEOPNOTSUPP
#define EPFNOSUPPORT WSAEPFNOSUPPORT
+#undef EAFNOSUPPORT
#define EAFNOSUPPORT WSAEAFNOSUPPORT
+#undef EADDRINUSE
#define EADDRINUSE WSAEADDRINUSE
+#undef EADDRNOTAVAIL
#define EADDRNOTAVAIL WSAEADDRNOTAVAIL
+#undef ENETDOWN
#define ENETDOWN WSAENETDOWN
+#undef ENETUNREACH
#define ENETUNREACH WSAENETUNREACH
+#undef ENETRESET
#define ENETRESET WSAENETRESET
+#undef ECONNABORTED
#define ECONNABORTED WSAECONNABORTED
+#undef ECONNRESET
#define ECONNRESET WSAECONNRESET
+#undef ENOBUFS
#define ENOBUFS WSAENOBUFS
+#undef EISCONN
#define EISCONN WSAEISCONN
+#undef ENOTCONN
#define ENOTCONN WSAENOTCONN
#define ESHUTDOWN WSAESHUTDOWN
#define ETOOMANYREFS WSAETOOMANYREFS
+#undef ETIMEDOUT
#define ETIMEDOUT WSAETIMEDOUT
+#undef ECONNREFUSED
#define ECONNREFUSED WSAECONNREFUSED
+#undef ELOOP
#define ELOOP WSAELOOP
#define EHOSTDOWN WSAEHOSTDOWN
+#undef EHOSTUNREACH
#define EHOSTUNREACH WSAEHOSTUNREACH
#define EPROCLIM WSAEPROCLIM
#define EUSERS WSAEUSERS