Skip to content
Snippets Groups Projects
Commit aa47d744 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Improve compilation on non-FreeBSD systems.

parent 7a61c783
No related branches found
No related tags found
No related merge requests found
......@@ -332,11 +332,13 @@ void free_expression(struct expression *expression)
free_expression(expression->value.linger->l_onoff);
free_expression(expression->value.linger->l_linger);
break;
#if defined(__FreeBSD__)
case EXPR_TCP_FUNCTION_SET:
assert(expression->value.tcp_function_set);
free_expression(expression->value.tcp_function_set->function_set_name);
free_expression(expression->value.tcp_function_set->pcbcnt);
break;
#endif
case EXPR_SCTP_RTOINFO:
assert(expression->value.sctp_rtoinfo);
free_expression(expression->value.sctp_rtoinfo->srto_assoc_id);
......@@ -2765,10 +2767,12 @@ static int evaluate(struct expression *in,
memcpy(&out->value.linger, &in->value.linger,
sizeof(in->value.linger));
break;
#if defined(__FreeBSD__)
case EXPR_TCP_FUNCTION_SET: /* copy as-is */
memcpy(&out->value.tcp_function_set, &in->value.tcp_function_set,
sizeof(in->value.tcp_function_set));
break;
#endif
case EXPR_SCTP_RTOINFO:
result = evaluate_sctp_rtoinfo_expression(in, out, error);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment