-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Compilation of r34854 with Visual Studio 2010 fails with
service_scan.cc(2559): error C2065: 'EOPNOTSUPP' : undeclared identifier
The root cause appears to be the absence of the corresponding definition in nbase/nbase_winunix.h. The following patch rectifies the issue:
--- a/nbase/nbase_winunix.h 2015-06-28 10:49:40.000000000 -0600
+++ b/nbase/nbase_winunix.h 2015-07-06 18:10:35.876970500 -0600
@@ -242,6 +242,8 @@
#define ENOBUFS WSAENOBUFS /* No buffer space available */
#undef EMSGSIZE
#define EMSGSIZE WSAEMSGSIZE /* Message too long */
+#undef EOPNOTSUPP
+#define EOPNOTSUPP WSAEOPNOTSUPP /* Operation not supported */
#undef ENOMEM
#define ENOMEM WSAENOBUFS
#undef ENOTSOCK