aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authorjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-26 16:49:57 +0000
committerjpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-26 16:49:57 +0000
commitef82102b87e844d1b46343763a654c94ca048af7 (patch)
tree131955fe60cc6d07e2545864bc79caf8d3c3d06a /channels/chan_dahdi.c
parent89e5190478b443bbff998609198c33703264b496 (diff)
add HAVE_PRI if define around dahdi_close_pri_fd
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@140115 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 0313a7977..91160f170 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)
{