summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven McCoy <steven.mccoy@miru.hk>2010-09-30 11:33:35 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-30 11:33:35 +0200
commiteaa925eca7a3e0c64d184a4a96fec139166a7470 (patch)
tree70bdb2391b3147fc1606d594651c4edd1abd61a5
parentec2e85919e4a34a313e6d0df84cc421bc9682ad8 (diff)
FreeBSD doesn't define MSG_ERRQUEUE -- now it's defined in 0MQ
-rw-r--r--src/pgm_socket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pgm_socket.cpp b/src/pgm_socket.cpp
index 6a6f549..bc5fea9 100644
--- a/src/pgm_socket.cpp
+++ b/src/pgm_socket.cpp
@@ -40,6 +40,10 @@
#include "uuid.hpp"
#include "stdint.hpp"
+#ifndef MSG_ERRQUEUE
+# define MSG_ERRQUEUE 0x2000
+#endif
+
zmq::pgm_socket_t::pgm_socket_t (bool receiver_, const options_t &options_) :
sock (NULL),
options (options_),