Patch: lcr missing ifdef ISDN_P_FXS_POTS

"Peter Holik" <[email protected]>
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <2758993194127f8038218c830e84e6b7.squirrel@webmail.it-technology.at>
Hi!

I could not compile lcr git without this patch

cu Peter

_______________________________________________
isdn4linux mailing list
[email protected]
https://www.isdn4linux.de/mailman/listinfo/isdn4linux
misdn_fxs_pots.diff (text/x-diff, 492 B)
diff --git a/mISDN.cpp b/mISDN.cpp
index bb50a58..013f421 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -1818,9 +1818,11 @@ 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
+#endif
 			PERROR("FXO not supported!\n");
 		break;
 	case PH_ACTIVATE_REQ:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.