Skip to content

Commit

Permalink
Problem: tcp_address.cpp won't compile on OS/X w/o ZMQ_HAVE_IFADDRS
Browse files Browse the repository at this point in the history
This is rather insane since the code knows well enough what systems
support if_nametoindex. I blame this on over-use of autotools early
in libzmq's days.

Anyhow, this breaks gyp builds on OS/X.

Solution: add ZMQ_HAVE_IFADDRS to build/gyp/platform.hpp for OS/X.
  • Loading branch information
hintjens committed Feb 12, 2016
1 parent 6bef3fe commit a682f94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builds/gyp/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#elif defined ZMQ_HAVE_OSX
# define ZMQ_USE_KQUEUE 1
# define HAVE_POSIX_MEMALIGN 1
# define ZMQ_HAVE_IFADDRS 1
# define ZMQ_HAVE_SO_KEEPALIVE 1
# define ZMQ_HAVE_TCP_KEEPALIVE 1
# define ZMQ_HAVE_TCP_KEEPCNT 1
Expand Down

0 comments on commit a682f94

Please sign in to comment.