diff --git a/configure.ac b/configure.ac index e86aedf0..3cd8d63c 100644 --- a/configure.ac +++ b/configure.ac @@ -79,6 +79,7 @@ AC_CHECK_HEADERS([net/route.h], [], AC_MSG_ERROR([Required header not found]), [ # Checks for optional header files. AC_CHECK_HEADERS([ \ libutil.h \ +linux/if_ppp.h \ linux/if_tun.h \ mach/mach.h \ pty.h \ diff --git a/src/io.c b/src/io.c index 27c36780..4026dab0 100644 --- a/src/io.c +++ b/src/io.c @@ -34,15 +34,17 @@ #include #include -#include #include #include - #include #include #include +#if HAVE_LINUX_IF_PPP_H +#include +#endif + #if HAVE_MACH_MACH_H /* this is typical for mach kernel used on Mac OS X */ #include