Re-support "wd" if PC98 is defined. Because PC-98 still uses the wd driver.

This commit is contained in:
Yoshihiro Takahashi 2000-06-05 13:33:39 +00:00
parent ff1c1afb9f
commit 88916759e4
2 changed files with 9 additions and 1 deletions

View File

@ -278,9 +278,13 @@ MakeDev(struct chunk *c1, const char *path)
msgDebug("MakeDev: Called with %s on path %s\n", p, path);
if (!strcmp(p, "X"))
return 0;
if (!strncmp(p, "ad", 2))
cmaj = 116, p += 2;
#ifdef PC98
else if (!strncmp(p, "wd", 2))
cmaj = 3, p += 2;
#endif
else if (!strncmp(p, "wfd", 3))
cmaj = 87, p += 3;
else if (!strncmp(p, "afd", 3))

View File

@ -441,7 +441,11 @@ Collapse_Disk(struct disk *d)
}
#endif
#ifdef PC98
static char * device_list[] = {"wd", "ad", "da", "afd", "fla", "idad", "mlxd", "amrd", "twed", "fd", 0};
#else
static char * device_list[] = {"ad", "da", "afd", "fla", "idad", "mlxd", "amrd", "twed", "fd", 0};
#endif
char **
Disk_Names()