'EHOSTUNREACH' is not found in Windows

Description

Minor problem when compiling VisualStudio 2010 Windows version:

c:\cpp\libzmq\src\router.cpp(160): error C2065: 'EHOSTUNREACH' : undeclared identifier

To be able to compile I added into zmq.h (is this a correct fix?):

#ifndef EHOSTUNREACH
#define EHOSTUNREACH (ZMQ_HAUSNUMERO + 11)
#endif

Environment

Windows VisualStudio

Activity

Show:

pate stuta April 5, 2012 at 10:57 AM

Works.

PieterP April 4, 2012 at 1:40 PM

OK, np, I've made the patch and a pull request here: https://github.com/zeromq/libzmq/pull/303

You can close this issue when it's merged to master and you confirm it works. Thanks for this!

pate stuta April 4, 2012 at 12:31 PM

I have not time to learn git, sorry. All I can do is "git clone" and "git pull". Maybe it is better that somebody else fixes this. I'll stick to testing.

PieterP April 4, 2012 at 12:18 PM

Looks good, would you make a pull request for this then?

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

Created April 4, 2012 at 11:23 AM
Updated April 5, 2012 at 10:57 AM
Resolved April 5, 2012 at 10:57 AM