diff --git a/src/ip.cpp b/src/ip.cpp index 22cf3317..eb0e1181 100644 --- a/src/ip.cpp +++ b/src/ip.cpp @@ -108,7 +108,7 @@ void zmq::enable_ipv4_mapping (fd_t s_) { (void) s_; -#ifdef IPV6_V6ONLY +#if defined IPV6_V6ONLY && !defined ZMQ_HAVE_OPENBSD #ifdef ZMQ_HAVE_WINDOWS DWORD flag = 0; #else