X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-bsd.c;h=4239d0fc8dc2628f0dfda3b2cfd85e585eb77a19;hp=88d22848272ab7461254e38348e16b513ad64f44;hb=bfa20ccde2a70b1252dbb614132f1a4cbee815d4;hpb=66787f54548cc1e3b7934026ddaa956253073e39 diff --git a/pppd/sys-bsd.c b/pppd/sys-bsd.c index 88d2284..4239d0f 100644 --- a/pppd/sys-bsd.c +++ b/pppd/sys-bsd.c @@ -21,7 +21,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-bsd.c,v 1.33 1998/09/04 18:49:16 christos Exp $"; +static char rcsid[] = "$Id: sys-bsd.c,v 1.34 1998/11/07 06:59:30 paulus Exp $"; /* $NetBSD: sys-bsd.c,v 1.1.1.3 1997/09/26 18:53:04 christos Exp $ */ #endif @@ -159,9 +159,16 @@ sys_close() /* * sys_check_options - check the options that the user specified */ -void +int sys_check_options() { +#ifndef CDTRCTS + if (crtscts == 2) { + syslog(LOG_WARNING, "DTR/CTS flow control is not supported on this system"); + return 0; + } +#endif + return 1; } /* @@ -389,9 +396,6 @@ set_up_tty(fd, local) if (crtscts == 2) { #ifdef CDTRCTS tios.c_cflag |= CDTRCTS; -#else - syslog(LOG_ERR, "System does not support DTR/CTS flow control"); - die(1); #endif } else tios.c_cflag |= CRTSCTS;