Skip to content

Commit

Permalink
Make zsockopt robust against out-of-date libzmq versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hintjens committed Oct 9, 2012
1 parent 6211a8f commit 229787b
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sockopts.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 229787b

Please sign in to comment.