mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
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
This commit is contained in:
@@ -958,11 +958,13 @@ static void dahdi_close_sub(struct dahdi_pvt *chan_pvt, int sub_num)
|
|||||||
chan_pvt->subs[sub_num].dfd = -1;
|
chan_pvt->subs[sub_num].dfd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_PRI
|
||||||
static void dahdi_close_pri_fd(struct dahdi_pri *pri, int fd_num)
|
static void dahdi_close_pri_fd(struct dahdi_pri *pri, int fd_num)
|
||||||
{
|
{
|
||||||
dahdi_close(pri->fds[fd_num]);
|
dahdi_close(pri->fds[fd_num]);
|
||||||
pri->fds[fd_num] = -1;
|
pri->fds[fd_num] = -1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int dahdi_setlinear(int dfd, int linear)
|
static int dahdi_setlinear(int dfd, int linear)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user