summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-29 08:38:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-29 08:51:47 +0100
commitcbffc0b0e229d913c6563b292ca859cbd2764383 (patch)
treeebf4efa58cf9bdca2738385a42e103b20fe36c98
parent513e2344de7e55bf236845ecb339a326755bff5b (diff)
downloadrtems-libbsd-cbffc0b0e229d913c6563b292ca859cbd2764383.tar.bz2
LIBMEMSTAT(3): Disable malloc sysctls
-rw-r--r--freebsd/lib/libmemstat/memstat_all.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/lib/libmemstat/memstat_all.c b/freebsd/lib/libmemstat/memstat_all.c
index c76a8528..3d5a63e2 100644
--- a/freebsd/lib/libmemstat/memstat_all.c
+++ b/freebsd/lib/libmemstat/memstat_all.c
@@ -41,8 +41,10 @@ int
memstat_sysctl_all(struct memory_type_list *mtlp, int flags)
{
+#ifndef __rtems__
if (memstat_sysctl_malloc(mtlp, flags) < 0)
return (-1);
+#endif /* __rtems__ */
if (memstat_sysctl_uma(mtlp, flags) < 0)
return (-1);
return (0);