From: Peter Holik Date: Wed, 6 Nov 2013 06:47:35 +0000 (+0100) Subject: Make LCR compile, even if POTS/FXS is not supported by mISDN X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=b1bfd4973aed3931ade9f212044c4c94451f6f77 Make LCR compile, even if POTS/FXS is not supported by mISDN Signed-off-by: Andreas Eversberg --- diff --git a/mISDN.cpp b/mISDN.cpp index bb50a58..1431642 100644 --- a/mISDN.cpp +++ b/mISDN.cpp @@ -1818,10 +1818,12 @@ static int pots_sock_callback(struct lcr_fd *fd, unsigned int what, void *instan case PH_CONTROL_IND: cont = *((unsigned int *)(buffer + MISDN_HEADER_LEN)); /* l1-control is sent to LCR */ +#ifdef ISDN_P_FXS_POTS if (mISDNport->ntmode) stack2manager_fxs(mISDNport, cont); else PERROR("FXO not supported!\n"); +#endif break; case PH_ACTIVATE_REQ: break;