Small updates for NetBSD port

This commit is contained in:
Michiel Broek
2002-01-11 19:01:00 +00:00
parent da6dd3b898
commit 5e52163ff7
19 changed files with 60 additions and 47 deletions

View File

@@ -107,6 +107,9 @@ int CountTtyinfo(void)
#endif
#ifdef __FreeBSD__
sprintf(ttyinfo.tty, "cuaia%d", i);
#endif
#ifdef __NetBSD__
sprintf(ttyinfo.tty, "ttyi%c", i + 'a'); // NetBSD on a Sparc, how about PC's?
#endif
sprintf(ttyinfo.speed, "64 kbits");
sprintf(ttyinfo.flags, "XA,X75,CM");
@@ -126,6 +129,9 @@ int CountTtyinfo(void)
#endif
#ifdef __FreeBSD__
sprintf(ttyinfo.tty, "cuaa%d", i);
#endif
#ifdef __NetBSD__
sprintf(ttyinfo.tty, "tty%c", i + 'a'); // NetBSD on a Sparc, how about PC's?
#endif
sprintf(ttyinfo.speed, "33.6 kbits");
sprintf(ttyinfo.flags, "CM,XA,V32B,V42B,V34");
@@ -133,7 +139,11 @@ int CountTtyinfo(void)
ttyinfo.available = FALSE;
ttyinfo.callout = TRUE;
ttyinfo.honor_zmh = TRUE;
#ifdef __sparc__
ttyinfo.portspeed = 38400; // Safe, ULTRA has a higher maxmimum speed
#else
ttyinfo.portspeed = 57600;
#endif
sprintf(ttyinfo.name, "Modem line #%d", i+1);
fwrite(&ttyinfo, sizeof(ttyinfo), 1, fil);
}

View File

@@ -140,6 +140,8 @@ void soft_info(void)
center_addstr( 6, (char *)"MBSE BBS (Linux)");
#elif __FreeBSD__
center_addstr( 6, (char *)"MBSE BBS (FreeBSD)");
#elif __NetBSD__
center_addstr( 6, (char *)"MBSE BBS (NetBSD)");
#else
center_addstr( 6, (char *)"MBSE BBS (Unknown)");
#endif