SYSCTL_ROOT_NODE exists only on FreeBSD >= 1100024

This commit is contained in:
Max Khon 2014-09-13 12:26:07 +00:00
parent e94ec1e344
commit c012e27e3e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368087

View File

@ -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