From: schlaile Date: Tue, 12 Aug 2008 14:16:54 +0000 (+0200) Subject: make LCR compile again with latest mISDNuser changes X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=3a5b34a850db3e4447287f46a40b74e0427eae54 make LCR compile again with latest mISDNuser changes --- diff --git a/bchannel.c b/bchannel.c index c5dcc4b..b154972 100644 --- a/bchannel.c +++ b/bchannel.c @@ -25,6 +25,10 @@ #include #include +#define AF_COMPATIBILITY_FUNC 1 +#define MISDN_OLD_AF_COMPATIBILITY 1 +#include + #include @@ -53,6 +57,8 @@ enum { int bchannel_initialize(void) { + init_af_isdn(); + return(0); } diff --git a/mISDN.cpp b/mISDN.cpp index eeb00ee..40d9a9a 100644 --- a/mISDN.cpp +++ b/mISDN.cpp @@ -13,6 +13,8 @@ #include "myisdn.h" extern "C" { +#define MISDN_OLD_AF_COMPATIBILITY 1 +#include } #include @@ -46,6 +48,8 @@ int mISDN_initialize(void) { char filename[256]; + init_af_isdn(); + /* try to open raw socket to check kernel */ mISDNsocket = socket(PF_ISDN, SOCK_RAW, ISDN_P_BASE); if (mISDNsocket < 0)