Permalink
Browse files

Make zsockopt robust against out-of-date libzmq versions

  • Loading branch information...
1 parent 6211a8f commit 229787bcbc087ac929a7fd1f0777b2768d1472d3 @hintjens committed Oct 9, 2012
Showing with 123 additions and 0 deletions.
  1. +3 −0 sockopts.gsl
  2. +120 −0 src/zsockopt.c
View
@@ -169,6 +169,9 @@ int zsockopt_test (Bool verbose);
void
zsocket_set_$(name) (void *socket, $(ctype) $(name))
{
+# if !defined (ZMQ_$(NAME))
+# define ZMQ_$(NAME) 999 // Using an out-of-date libzmq
+# endif
. if ctype = "int"
. if type = "uint64"
uint64_t value = $(name);
Oops, something went wrong.

0 comments on commit 229787b

Please sign in to comment.