]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_zap compiles without libpri after committing 7877 patch
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Fri, 19 Jan 2007 00:17:32 +0000 (00:17 +0000)
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Fri, 19 Jan 2007 00:17:32 +0000 (00:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51274 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index a27748f1673a62287c7f0c600890927b0ad06693..4d1935202b58a7a1d7114c9e37e2e054c332d4af 100644 (file)
@@ -590,7 +590,9 @@ static struct zt_pvt {
  */
 struct zt_chan_conf {
        struct zt_pvt chan;
+#ifdef HAVE_PRI
        struct zt_pri pri;
+#endif
        ZT_PARAMS timing;
 
        char smdi_port[SMDI_MAX_FILENAME_LEN];
@@ -602,8 +604,8 @@ static struct zt_chan_conf zt_chan_conf_default(void) {
         * to 0 or equivalent
         */
        struct zt_chan_conf conf = {
-               .pri = {
 #ifdef HAVE_PRI
+               .pri = {
                        .nsf = PRI_NSF_NONE,
                        .switchtype = PRI_SWITCH_NI2,
                        .dialplan = PRI_NATIONAL_ISDN + 1,
@@ -620,8 +622,8 @@ static struct zt_chan_conf zt_chan_conf_default(void) {
                        .unknownprefix = "",
 
                        .resetinterval = 3600
-#endif
                },
+#endif
                .chan = {
                        .context = "default",
                        .cid_num = "",