From af3b128436e874c2c42b6f154405af8ecf27168c Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sun, 23 May 2021 11:51:14 -0400 Subject: system_cmds: Fix compilation for lower targets, downgrade lsmp --- system_cmds/arch.tproj/arch.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'system_cmds/arch.tproj/arch.c') diff --git a/system_cmds/arch.tproj/arch.c b/system_cmds/arch.tproj/arch.c index 326b541..a0b5e20 100644 --- a/system_cmds/arch.tproj/arch.c +++ b/system_cmds/arch.tproj/arch.c @@ -34,6 +34,7 @@ #include #include #include +typedef char *kobject_description_t[512]; #include #include #include @@ -76,6 +77,7 @@ typedef struct { size_t capacity; } CPU; +#if 0 typedef struct { const char *arch; cpu_type_t cpu; @@ -166,6 +168,7 @@ isSupportedCPU(cpu_type_t cpu) bool unrecognizednative32seen = false; bool unrecognizednative64seen = false; +#endif /* * arch - perform the original behavior of the arch and machine commands. @@ -188,6 +191,7 @@ arch(int archcmd) exit(0); } +#if 0 /* * spawnIt - run the posix_spawn command. cpu is the auto-sizing CPU structure. * pflag is non-zero to call posix_spawnp; zero means to call posix_spawn. @@ -770,7 +774,7 @@ spawnFromArgs(CPU *cpu, char **argv) */ spawnIt(cpu, 1, *argv, argv); } - +#endif /* the main() routine */ int @@ -788,7 +792,8 @@ main(int argc, char **argv) if(argc == 1) arch(1); /* the "arch" command with no arguments was called */ } - + return(0); +#if 0 initCPU(&cpu); if(my_name_is_arch) @@ -798,4 +803,5 @@ main(int argc, char **argv) /* should never get here */ errx(1, "returned from spawn"); +#endif } -- cgit v1.2.3-56-ge451