summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-29 08:42:36 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-29 08:51:47 +0100
commita27a1ba4f5305f9cc5ac3b043008a7346c18ebe9 (patch)
tree7945af9ce4ff8753eb9fa72af64c1ecb08d5cade
parent74c5b0ff7323dd8de1e27232af0b74615eab89c2 (diff)
downloadrtems-libbsd-a27a1ba4f5305f9cc5ac3b043008a7346c18ebe9.tar.bz2
SBUF(9): Enable sbuf_new_for_sysctl()
-rw-r--r--freebsd/sys/kern/kern_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freebsd/sys/kern/kern_sysctl.c b/freebsd/sys/kern/kern_sysctl.c
index 0903dd74..38201cd3 100644
--- a/freebsd/sys/kern/kern_sysctl.c
+++ b/freebsd/sys/kern/kern_sysctl.c
@@ -1652,6 +1652,7 @@ userland_sysctl(struct thread *td, int *name, u_int namelen, void *old,
}
return (error);
}
+#endif /* __rtems__ */
/*
* Drain into a sysctl struct. The user buffer should be wired if a page
@@ -1677,4 +1678,3 @@ sbuf_new_for_sysctl(struct sbuf *s, char *buf, int length,
sbuf_set_drain(s, sbuf_sysctl_drain, req);
return (s);
}
-#endif /* __rtems__ */