/* If we're leaving the macro normally, restore original information */
chan->priority = oldpriority;
strncpy(chan->context, oldcontext, sizeof(chan->context) - 1);
- if (!chan->_softhangup) {
+ if (!(chan->_softhangup & AST_SOFTHANGUP_ASYNCGOTO)) {
/* Copy the extension, so long as we're not in softhangup, where we could be given an asyncgoto */
strncpy(chan->exten, oldexten, sizeof(chan->exten) - 1);
if ((offsets = pbx_builtin_getvar_helper(chan, "MACRO_OFFSET"))) {
const char *dname, int class, int type,
int (*callback)(void *context, u_char *answer, int len, u_char *fullanswer))
{
-#ifdef __Linux__
+#ifdef linux
struct __res_state dnsstate;
#endif
char answer[MAX_SIZE];
int res, ret = -1;
-#ifdef __Linux__
+#ifdef linux
res_ninit(&dnsstate);
res = res_nsearch(&dnsstate, dname, class, type, answer, sizeof(answer));
#else
else
ret = 1;
}
-#if defined(__Linux__)
+#if defined(linux)
res_nclose(&dnsstate);
#else
#ifndef __APPLE__