Skip to content

Commit

Permalink
Compile without <linux/if_ppp.h>
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Apr 22, 2024
1 parent f9c70af commit cb8051d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 4 additions & 2 deletions src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,17 @@

#include <unistd.h>
#include <arpa/inet.h>
#include <linux/if_ppp.h>
#include <netinet/tcp.h>
#include <sys/ioctl.h>


#include <errno.h>
#include <signal.h>
#include <string.h>

#if HAVE_LINUX_IF_PPP_H
#include <linux/if_ppp.h>
#endif

#if HAVE_MACH_MACH_H
/* this is typical for mach kernel used on Mac OS X */
#include <mach/mach.h>
Expand Down

0 comments on commit cb8051d

Please sign in to comment.