diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-05-23 11:51:14 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-05-23 11:51:14 -0400 |
commit | af3b128436e874c2c42b6f154405af8ecf27168c (patch) | |
tree | 0009a24f50f15d38577f04fd65af8d258da4d6f2 /system_cmds/arch.tproj/arch.c | |
parent | 6049e2ca2a32bf3cd895ac1279495d4bf61c638d (diff) | |
download | apple_cmds-af3b128436e874c2c42b6f154405af8ecf27168c.tar.gz apple_cmds-af3b128436e874c2c42b6f154405af8ecf27168c.tar.zst apple_cmds-af3b128436e874c2c42b6f154405af8ecf27168c.zip |
system_cmds: Fix compilation for lower targets, downgrade lsmp
Diffstat (limited to 'system_cmds/arch.tproj/arch.c')
-rw-r--r-- | system_cmds/arch.tproj/arch.c | 10 |
1 files changed, 8 insertions, 2 deletions
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 <sys/param.h> #include <paths.h> #include <err.h> +typedef char *kobject_description_t[512]; #include <mach/mach.h> #include <mach-o/arch.h> #include <limits.h> @@ -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 } |