From dd0dfe8c8e441d1e5f4766b02b18685d46bd522c Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 3 Mar 2024 19:10:58 +0100 Subject: [PATCH] Compile without --- configure.ac | 1 + src/io.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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