From: Jeff Peeler Date: Tue, 26 Aug 2008 16:49:57 +0000 (+0000) Subject: add HAVE_PRI if define around dahdi_close_pri_fd X-Git-Tag: 1.4.22-rc3~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c9fa301c6beea6ac7823e39bccea8359fed5460;p=thirdparty%2Fasterisk.git add HAVE_PRI if define around dahdi_close_pri_fd git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@140115 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 0313a79777..91160f1704 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -957,12 +957,14 @@ static void dahdi_close_sub(struct dahdi_pvt *chan_pvt, int sub_num) dahdi_close(chan_pvt->subs[sub_num].dfd); chan_pvt->subs[sub_num].dfd = -1; } - + +#ifdef HAVE_PRI static void dahdi_close_pri_fd(struct dahdi_pri *pri, int fd_num) { dahdi_close(pri->fds[fd_num]); pri->fds[fd_num] = -1; } +#endif static int dahdi_setlinear(int dfd, int linear) {