Permalink
Browse files

Merge pull request #82 from hintjens/master

zsockopts no longer breaks if it hits a ZMQ_ macro that's undefined
  • Loading branch information...
2 parents 6211a8f + 229787b commit 78b5e16d1bacc58ab7df80b50179932cc3bd34d2 @methodmissing methodmissing 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 78b5e16

Please sign in to comment.