diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c index f86ce13d87b6..d41c4ea2b42c 100644 --- a/usr.sbin/sade/config.c +++ b/usr.sbin/sade/config.c @@ -207,7 +207,11 @@ configFstab(dialogMenuItem *self) if (!disk->chunks) msgFatal("No chunk list found for %s!", disk->name); for (c1 = disk->chunks->part; c1; c1 = c1->next) { +#ifdef __powerpc__ + if (c1->type == apple) { +#else if (c1->type == freebsd) { +#endif for (c2 = c1->part; c2; c2 = c2->next) { if (c2->type == part && (c2->subtype == FS_SWAP || c2->private_data)) chunk_list[nchunks++] = c2; diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c index f86ce13d87b6..d41c4ea2b42c 100644 --- a/usr.sbin/sysinstall/config.c +++ b/usr.sbin/sysinstall/config.c @@ -207,7 +207,11 @@ configFstab(dialogMenuItem *self) if (!disk->chunks) msgFatal("No chunk list found for %s!", disk->name); for (c1 = disk->chunks->part; c1; c1 = c1->next) { +#ifdef __powerpc__ + if (c1->type == apple) { +#else if (c1->type == freebsd) { +#endif for (c2 = c1->part; c2; c2 = c2->next) { if (c2->type == part && (c2->subtype == FS_SWAP || c2->private_data)) chunk_list[nchunks++] = c2;