]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Compile, even if both DAHDI and Zaptel are not installed.
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 23 Dec 2008 15:35:38 +0000 (15:35 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 23 Dec 2008 15:35:38 +0000 (15:35 +0000)
(Closes issue #14120)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@166592 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c
main/asterisk.c

index aefc0b26ef4696257ed7c1afafe124254fbd279a..b50c968fde195cf3b7231a8e3541376dfbd40fb0 100644 (file)
@@ -11231,6 +11231,7 @@ static int load_module(void)
        iax_set_error(iax_error_output);
        jb_setoutput(jb_error_output, jb_warning_output, NULL);
        
+#ifdef HAVE_DAHDI
 #ifdef DAHDI_TIMERACK
        timingfd = open(DAHDI_FILE_TIMER, O_RDWR);
        if (timingfd < 0)
@@ -11238,6 +11239,7 @@ static int load_module(void)
                timingfd = open(DAHDI_FILE_PSEUDO, O_RDWR);
        if (timingfd < 0) 
                ast_log(LOG_WARNING, "Unable to open IAX timing interface: %s\n", strerror(errno));
+#endif
 
        memset(iaxs, 0, sizeof(iaxs));
 
index 2afe01a81d7a91264f62a424ad6ab7c69f713af3..8ef99c68300d2402d59803d002b065080fe6d40b 100644 (file)
@@ -3034,6 +3034,7 @@ int main(int argc, char *argv[])
        dahdi_chan_name_len = &_dahdi_chan_name_len;
        dahdi_chan_mode = &_dahdi_chan_mode;
 
+#ifdef HAVE_DAHDI
        {
                int fd;
                int x = 160;
@@ -3070,6 +3071,7 @@ int main(int argc, char *argv[])
                        close(fd);
                }
        }
+#endif
        threadstorage_init();
 
        astobj2_init();