mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
Compile, even if both DAHDI and Zaptel are not installed.
(Closes issue #14120) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@166592 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -11231,6 +11231,7 @@ static int load_module(void)
|
|||||||
iax_set_error(iax_error_output);
|
iax_set_error(iax_error_output);
|
||||||
jb_setoutput(jb_error_output, jb_warning_output, NULL);
|
jb_setoutput(jb_error_output, jb_warning_output, NULL);
|
||||||
|
|
||||||
|
#ifdef HAVE_DAHDI
|
||||||
#ifdef DAHDI_TIMERACK
|
#ifdef DAHDI_TIMERACK
|
||||||
timingfd = open(DAHDI_FILE_TIMER, O_RDWR);
|
timingfd = open(DAHDI_FILE_TIMER, O_RDWR);
|
||||||
if (timingfd < 0)
|
if (timingfd < 0)
|
||||||
@@ -11238,6 +11239,7 @@ static int load_module(void)
|
|||||||
timingfd = open(DAHDI_FILE_PSEUDO, O_RDWR);
|
timingfd = open(DAHDI_FILE_PSEUDO, O_RDWR);
|
||||||
if (timingfd < 0)
|
if (timingfd < 0)
|
||||||
ast_log(LOG_WARNING, "Unable to open IAX timing interface: %s\n", strerror(errno));
|
ast_log(LOG_WARNING, "Unable to open IAX timing interface: %s\n", strerror(errno));
|
||||||
|
#endif
|
||||||
|
|
||||||
memset(iaxs, 0, sizeof(iaxs));
|
memset(iaxs, 0, sizeof(iaxs));
|
||||||
|
|
||||||
|
@@ -3034,6 +3034,7 @@ int main(int argc, char *argv[])
|
|||||||
dahdi_chan_name_len = &_dahdi_chan_name_len;
|
dahdi_chan_name_len = &_dahdi_chan_name_len;
|
||||||
dahdi_chan_mode = &_dahdi_chan_mode;
|
dahdi_chan_mode = &_dahdi_chan_mode;
|
||||||
|
|
||||||
|
#ifdef HAVE_DAHDI
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
int x = 160;
|
int x = 160;
|
||||||
@@ -3070,6 +3071,7 @@ int main(int argc, char *argv[])
|
|||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
threadstorage_init();
|
threadstorage_init();
|
||||||
|
|
||||||
astobj2_init();
|
astobj2_init();
|
||||||
|
Reference in New Issue
Block a user