aboutsummaryrefslogtreecommitdiff
path: root/misc/dahdi-kmod26
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2014-09-13 12:26:07 +0000
committerMax Khon <fjoe@FreeBSD.org>2014-09-13 12:26:07 +0000
commitc012e27e3e5f97dcd0a8e6794f79fed1efc536ab (patch)
tree9d5a712d6e463a8d51b05702afbebbcfd8a41168 /misc/dahdi-kmod26
parente94ec1e344340b7910ca03e080b2307a974bbfad (diff)
downloadports-c012e27e3e5f97dcd0a8e6794f79fed1efc536ab.tar.gz
ports-c012e27e3e5f97dcd0a8e6794f79fed1efc536ab.zip
Notes
Diffstat (limited to 'misc/dahdi-kmod26')
-rw-r--r--misc/dahdi-kmod26/files/patch-bsd-kmod-dahdi-dahdi-bsd.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/misc/dahdi-kmod26/files/patch-bsd-kmod-dahdi-dahdi-bsd.c b/misc/dahdi-kmod26/files/patch-bsd-kmod-dahdi-dahdi-bsd.c
index b0579792416e..d4e5ca4bb64e 100644
--- a/misc/dahdi-kmod26/files/patch-bsd-kmod-dahdi-dahdi-bsd.c
+++ b/misc/dahdi-kmod26/files/patch-bsd-kmod-dahdi-dahdi-bsd.c
@@ -1,11 +1,14 @@
---- bsd-kmod/dahdi/dahdi-bsd.c.orig 2014-09-01 01:18:32.000000000 +0700
-+++ bsd-kmod/dahdi/dahdi-bsd.c 2014-09-01 01:18:41.000000000 +0700
-@@ -38,7 +38,7 @@
+--- bsd-kmod/dahdi/dahdi-bsd.c.orig 2012-09-28 02:45:50.000000000 +0700
++++ bsd-kmod/dahdi/dahdi-bsd.c 2014-09-13 19:23:54.000000000 +0700
+@@ -38,7 +38,11 @@
MALLOC_DEFINE(M_DAHDI, "dahdi", "DAHDI interface data structures");
--SYSCTL_NODE(, OID_AUTO, dahdi, CTLFLAG_RW, 0, "DAHDI");
++#if __FreeBSD_version >= 1100024
+SYSCTL_ROOT_NODE(OID_AUTO, dahdi, CTLFLAG_RW, 0, "DAHDI");
++#else
+ SYSCTL_NODE(, OID_AUTO, dahdi, CTLFLAG_RW, 0, "DAHDI");
++#endif
SYSCTL_NODE(_dahdi, OID_AUTO, echocan, CTLFLAG_RW, 0, "DAHDI Echo Cancelers");
void