From 9fe8c97ccd95e8e2c4ea5c801cf97332af0a25f2 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Tue, 27 Mar 2012 13:42:16 -0500 Subject: [PATCH] Commented out methods to prevent linker errors. Removed methods that would require we pull in more files that we didn't need at the moment. --- freebsd/kern/kern_subr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/freebsd/kern/kern_subr.c b/freebsd/kern/kern_subr.c index f32e8750..1619a17d 100644 --- a/freebsd/kern/kern_subr.c +++ b/freebsd/kern/kern_subr.c @@ -70,6 +70,7 @@ __FBSDID("$FreeBSD$"); #include #endif +#ifndef __rtems__ SYSCTL_INT(_kern, KERN_IOV_MAX, iov_max, CTLFLAG_RD, NULL, UIO_MAXIOV, "Maximum number of elements in an I/O vector; sysconf(_SC_IOV_MAX)"); @@ -372,6 +373,7 @@ again: uio->uio_offset++; return (0); } +#endif /* __rtems__ */ /* * General routine to allocate a hash table with control of memory flags. @@ -463,6 +465,7 @@ phashinit(int elements, struct malloc_type *type, u_long *nentries) return (hashtbl); } +#ifndef __rtems__ void uio_yield(void) { @@ -584,3 +587,4 @@ cloneuio(struct uio *uiop) bcopy(uiop->uio_iov, uio->uio_iov, iovlen); return (uio); } +#endif /* __rtems__ */