#include <ctype.h>
#include <termios.h>
#include <unistd.h>
+#include <paths.h>
/* This is in netdevice.h. However, this compile will fail miserably if
you attempt to include netdevice.h because it has so many references
really don't use it, but it must be defined, define it now. */
#ifndef MAX_ADDR_LEN
-#define MAX_ADDR_LEN 7
+#define xxMAX_ADDR_LEN 7
#endif
#if __GLIBC__ >= 2
#include <linux/route.h>
#include <linux/if_ether.h>
#endif
+#include <linux/sockios.h>
#include <netinet/in.h>
#include <arpa/inet.h>
len -= 2;
}
nr = -1;
+
if (ppp_fd >= 0) {
nr = read(ppp_fd, buf, len);
if (nr < 0 && errno != EWOULDBLOCK && errno != EAGAIN
/* Default the mount location of /proc */
strlcpy (proc_path, "/proc", sizeof(proc_path));
proc_path_len = 5;
- fp = fopen(MOUNTED, "r");
+ fp = fopen(_PATH_MOUNTED, "r");
if (fp != NULL) {
while ((mntent = getmntent(fp)) != NULL) {
if (strcmp(mntent->mnt_type, MNTTYPE_IGNORE) == 0)
if (mfd >= 0) {
int ptn;
if (ioctl(mfd, TIOCGPTN, &ptn) >= 0) {
- slprintf(pty_name, sizeof(pty_name), "/dev/pts/%d", ptn);
+ slprintf(pty_name, sizeof(pty_name), "/dev.pts/%d", ptn);
chmod(pty_name, S_IRUSR | S_IWUSR);
#ifdef TIOCSPTLCK
ptn = 0;