diff options
author | fjoe <fjoe@FreeBSD.org> | 2014-09-13 20:21:33 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2014-09-13 20:21:33 +0800 |
commit | 58ddba3a1160a5949488d09f3305ae4166853a65 (patch) | |
tree | 5107c90d8ada031df2af3f6d59ba14343d018bd5 /misc/dahdi-kmod | |
parent | 38b59498adf4c29420797f88922a42191d93107a (diff) | |
download | freebsd-ports-graphics-58ddba3a1160a5949488d09f3305ae4166853a65.tar.gz freebsd-ports-graphics-58ddba3a1160a5949488d09f3305ae4166853a65.tar.zst freebsd-ports-graphics-58ddba3a1160a5949488d09f3305ae4166853a65.zip |
SYSCTL_ROOT_NODE exists only on FreeBSD >= 1100024
Diffstat (limited to 'misc/dahdi-kmod')
-rw-r--r-- | misc/dahdi-kmod/files/patch-freebsd-freebsd-dahdi-bsd-compat.c | 11 |
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 74409b2da78..0a960c9451b 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"); /* |