summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-03-15 14:15:40 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-03-15 14:15:40 -0500
commit53e50e4932410e558543704ebd069c2c0b42c6bf (patch)
tree65b77fe04da2c1435f7bacdf6e9cb8bfc571df31 /freebsd
parentAdd include of refcount.h to get static methods. (diff)
downloadrtems-libbsd-53e50e4932410e558543704ebd069c2c0b42c6bf.tar.bz2
Added rtems defines to remove source that is not being used, but was causing linker resolution errors.
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/kern/kern_subr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/kern/kern_subr.c b/freebsd/kern/kern_subr.c
index f32e8750..072af1c8 100644
--- a/freebsd/kern/kern_subr.c
+++ b/freebsd/kern/kern_subr.c
@@ -77,6 +77,7 @@ SYSCTL_INT(_kern, KERN_IOV_MAX, iov_max, CTLFLAG_RD, NULL, UIO_MAXIOV,
/* Declared in uipc_socket.c */
extern int so_zero_copy_receive;
+#ifndef __rtems__
/*
* Identify the physical page mapped at the given kernel virtual
* address. Insert this physical page into the given address space at
@@ -372,6 +373,7 @@ again:
uio->uio_offset++;
return (0);
}
+#endif
/*
* General routine to allocate a hash table with control of memory flags.
@@ -437,6 +439,7 @@ static int primes[] = { 1, 13, 31, 61, 127, 251, 509, 761, 1021, 1531, 2039,
7159, 7673, 8191, 12281, 16381, 24571, 32749 };
#define NPRIMES (sizeof(primes) / sizeof(primes[0]))
+#ifndef __rtems__
/*
* General routine to allocate a prime number sized hash table.
*/
@@ -584,3 +587,5 @@ cloneuio(struct uio *uiop)
bcopy(uiop->uio_iov, uio->uio_iov, iovlen);
return (uio);
}
+#endif
+