]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-linux.c
Add --prefix and --sysconfdir options to configure, and put
[ppp.git] / pppd / sys-linux.c
index 68e0584aeecb641d914f0b9f3b391f18316deb1c..5a5268b7d9162fa239fe10d4a7102fc5ce78ed5b 100644 (file)
 #endif /* IPX_CHANGE */
 
 #ifdef PPP_FILTER
-#include <net/bpf.h>
+#include <pcap-bpf.h>
 #include <linux/filter.h>
 #endif /* PPP_FILTER */
 
@@ -956,8 +956,8 @@ void set_up_tty(int tty_fd, int local)
            fatal("Baud rate for %s is 0; need explicit baud rate", devnam);
     }
 
-    if (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0)
-       if (!ok_error(errno))
+    while (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0 && !ok_error(errno))
+       if (errno != EINTR)
            fatal("tcsetattr: %m (line %d)", __LINE__);
 
     baud_rate    = baud_rate_of(speed);