aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2014-09-13 20:21:33 +0800
committerfjoe <fjoe@FreeBSD.org>2014-09-13 20:21:33 +0800
commit58ddba3a1160a5949488d09f3305ae4166853a65 (patch)
tree5107c90d8ada031df2af3f6d59ba14343d018bd5
parent38b59498adf4c29420797f88922a42191d93107a (diff)
downloadfreebsd-ports-gnome-58ddba3a1160a5949488d09f3305ae4166853a65.tar.gz
freebsd-ports-gnome-58ddba3a1160a5949488d09f3305ae4166853a65.tar.zst
freebsd-ports-gnome-58ddba3a1160a5949488d09f3305ae4166853a65.zip
SYSCTL_ROOT_NODE exists only on FreeBSD >= 1100024
-rw-r--r--misc/dahdi-kmod/files/patch-freebsd-freebsd-dahdi-bsd-compat.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/misc/dahdi-kmod/files/patch-freebsd-freebsd-dahdi-bsd-compat.c b/misc/dahdi-kmod/files/patch-freebsd-freebsd-dahdi-bsd-compat.c
index 74409b2da785..0a960c9451b4 100644
--- a/misc/dahdi-kmod/files/patch-freebsd-freebsd-dahdi-bsd-compat.c
+++ b/misc/dahdi-kmod/files/patch-freebsd-freebsd-dahdi-bsd-compat.c
@@ -1,11 +1,14 @@
---- freebsd/freebsd/dahdi/bsd-compat.c.orig 2014-09-01 00:42:34.000000000 +0700
-+++ freebsd/freebsd/dahdi/bsd-compat.c 2014-09-01 00:47:49.000000000 +0700
-@@ -45,7 +45,7 @@
+--- freebsd/freebsd/dahdi/bsd-compat.c.orig 2014-09-13 19:10:00.000000000 +0700
++++ freebsd/freebsd/dahdi/bsd-compat.c 2014-09-13 19:10:59.000000000 +0700
+@@ -45,7 +45,11 @@
#include <dahdi/compat/bsd.h>
--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");
/*