X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=b68cb045f7947c9fe15a4404326350fe461414ea;hb=ba0b5df875f332ba2fa33705f7ae0571376b66b8;hp=a43fc0a0fd582e6899dc91bbd5b1d8b64190e58f;hpb=929f3cc45107cbd755c2e8df3d8dff6348e1df95;p=ppp.git diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index a43fc0a..b68cb04 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -377,6 +377,13 @@ int establish_ppp (int tty_fd) /* * Set the current tty to the PPP discpline */ + +#ifndef N_SYNC_PPP +#define N_SYNC_PPP 14 +#endif + if (new_style_driver) + ppp_disc = sync_serial ? N_SYNC_PPP:N_PPP; + if (ioctl(tty_fd, TIOCSETD, &ppp_disc) < 0) { if ( ! ok_error (errno) ) fatal("ioctl(TIOCSETD): %m(%d)", errno);