*/
#ifndef lint
-static char rcsid[] = "$Id: sys-ultrix.c,v 1.1 1994/04/18 04:11:11 paulus Exp $";
+static char rcsid[] = "$Id: sys-ultrix.c,v 1.2 1994/05/06 04:48:21 paulus Exp $";
#endif
/*
*/
#include <syslog.h>
-#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/errno.h>
#include "ppp.h"
static int initdisc = -1; /* Initial TTY discipline */
-
+extern int kdebugflag;
/*
* establish_ppp - Turn the serial port into a ppp interface.
establish_ppp()
{
int pppdisc = PPPDISC;
+ int x;
if (ioctl(fd, TIOCGETD, &initdisc) < 0) {
syslog(LOG_ERR, "ioctl(TIOCGETD): %m");