Vitaly Stakhovsky created ZOOKEEPER-2096:
--------------------------------------------

             Summary: C client builds with incorrect error codes in 
VisualStudio 2010+
                 Key: ZOOKEEPER-2096
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2096
             Project: ZooKeeper
          Issue Type: Bug
          Components: build
         Environment: Windows MSVS 2010+
            Reporter: Vitaly Stakhovsky


It reports:
warning C4005: 'EWOULDBLOCK' : macro redefinition
warning C4005: 'EINPROGRESS' : macro redefinition

In MSVS 2010+, these constants are now in <errno.h>.
What's worse, they have different numeric values.

Possible fix:
In "src/c/include/winconfig.h" :
#if _MSC_VER < 1600
#define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS
#endif




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to