summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/sysctl/sysctl.c
diff options
context:
space:
mode:
authorJan Sommer <jan.sommer@dlr.de>2020-04-17 10:24:08 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-17 13:18:06 +0200
commita69293ca57c5a42402d7bbc26c52c6221c7d2f43 (patch)
treecf97c3a0d0dd1fe4a96a28396e62fc838def1162 /freebsd/sbin/sysctl/sysctl.c
parenti386: Delete old machine dependent files (diff)
downloadrtems-libbsd-a69293ca57c5a42402d7bbc26c52c6221c7d2f43.tar.bz2
i386: Port to RTEMS
- Update imported files to compile rtems-libbsd for i386 based BSPs - Mostly commenting out parts which create compile or link errors in RTEMS, but aren't needed
Diffstat (limited to 'freebsd/sbin/sysctl/sysctl.c')
-rw-r--r--freebsd/sbin/sysctl/sysctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/freebsd/sbin/sysctl/sysctl.c b/freebsd/sbin/sysctl/sysctl.c
index 30ebe5fd..035c1db2 100644
--- a/freebsd/sbin/sysctl/sysctl.c
+++ b/freebsd/sbin/sysctl/sysctl.c
@@ -69,7 +69,9 @@ static const char rcsid[] =
#endif
#if defined(__amd64__) || defined(__i386__)
+#ifndef __rtems__
#include <machine/pc/bios.h>
+#endif /* __rtems__ */
#endif
#include <assert.h>
@@ -832,6 +834,7 @@ S_efi_map(size_t l2, void *p)
#endif
#if defined(__amd64__) || defined(__i386__)
+#ifndef __rtems__
static int
S_bios_smap_xattr(size_t l2, void *p)
{
@@ -850,6 +853,7 @@ S_bios_smap_xattr(size_t l2, void *p)
(uintmax_t)smap->length);
return (0);
}
+#endif /* __rtems__ */
#endif
static int
@@ -1061,7 +1065,11 @@ show_var(int *oid, int nlen)
#endif
#if defined(__amd64__) || defined(__i386__)
else if (strcmp(fmt, "S,bios_smap_xattr") == 0)
+#ifndef __rtems__
func = S_bios_smap_xattr;
+#else /* __rtems__ */
+ func = NULL;
+#endif /* __rtems__ */
#endif
else {
func = NULL;