summaryrefslogtreecommitdiffstats
path: root/mISDN.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2010-03-11 16:27:28 +0100
committerAndreas Eversberg2010-03-11 16:27:28 +0100
commitc4fcb0668c607cb0135444274ff62572cf6111c4 (patch)
tree12bbee0747bfa9c06b517741f1317e4e02696b8a /mISDN.cpp
parentFixed compiler warnings when compiling with gcc 4.3.4. (diff)
downloadlcr-c4fcb0668c607cb0135444274ff62572cf6111c4.tar.gz
lcr-c4fcb0668c607cb0135444274ff62572cf6111c4.tar.xz
lcr-c4fcb0668c607cb0135444274ff62572cf6111c4.zip
Fixed includes to latest mISDNuser structures.
modified: Makefile.am modified: Makefile.in modified: README modified: bchannel.c modified: dss1.cpp modified: mISDN.cpp modified: main.h
Diffstat (limited to 'mISDN.cpp')
-rw-r--r--mISDN.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/mISDN.cpp b/mISDN.cpp
index f5f8717..dc6be83 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -12,11 +12,9 @@
#include "main.h"
#include "myisdn.h"
-extern "C" {
-#define MISDN_OLD_AF_COMPATIBILITY 1
-#include <compat_af_isdn.h>
-}
-#include <q931.h>
+#include <mISDN/mISDNcompat.h>
+int __af_isdn = MISDN_AF_ISDN;
+#include <mISDN/q931.h>
#undef offsetof
#ifdef __compiler_offsetof
@@ -56,12 +54,10 @@ 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) {
- fprintf(stderr, "Cannot open mISDN due to '%s'. (Does your Kernel support socket based mISDN?)\n", strerror(errno));
+ fprintf(stderr, "Cannot open mISDN due to '%s'. (Does your Kernel support socket based mISDN? Protocol family is %d.)\n", strerror(errno), PF_ISDN);
return(-1);
}