Commit fce5cb64 authored by Martti Mela's avatar Martti Mela

#ifdefs to enable Open C compilation

darcs-hash:20070628113537-1b897-0204a79abbab8e8fa9ac2f47bf7454e341b23f6f.gz
parent 2ee21e83
......@@ -1443,13 +1443,25 @@ int nua_server_respond(nua_server_request_t *sr, tagi_t const *tags)
nua_handle_t *nh = sr->sr_owner;
sip_method_t method = sr->sr_method;
struct { msg_t *msg; sip_t *sip; } next = { NULL, NULL };
tagi_t next_tags[2] = {{ SIPTAG_END() }, { TAG_NEXT(tags) }};
int retval;
#if HAVE_OPEN_C
/* Nice. And old arm symbian compiler; see below. */
tagi_t next_tags[2];
#else
tagi_t next_tags[2] = {{ SIPTAG_END() }, { TAG_NEXT(tags) }};
#endif
msg_t *msg = sr->sr_response.msg;
sip_t *sip = sr->sr_response.sip;
sip_contact_t *m = sr->sr_request.sip->sip_contact;
#if HAVE_OPEN_C
next_tags[0].t_tag = siptag_end;
next_tags[0].t_value = (tag_value_t)0;
next_tags[1].t_tag = tag_next;
next_tags[1].t_value = (tag_value_t)(tags);
#endif
if (sr->sr_response.msg == NULL) {
assert(sr->sr_status == 500);
goto internal_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment