Make LCR compile, even if POTS/FXS is not supported by mISDN
authorPeter Holik <peter@holik.at>
Wed, 6 Nov 2013 06:47:35 +0000 (07:47 +0100)
committerAndreas Eversberg <jolly@eversberg.eu>
Wed, 6 Nov 2013 06:47:35 +0000 (07:47 +0100)
Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
mISDN.cpp

index bb50a58..1431642 100644 (file)
--- 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;