summaryrefslogtreecommitdiff
path: root/pppdump
diff options
context:
space:
mode:
authorEivind Næss <eivnaes@yahoo.com>2022-05-30 20:50:55 -0700
committerEivind Næss <eivnaes@yahoo.com>2022-07-15 15:25:39 -0700
commit509f04959ad891d7f981f035ed461d51bd1f74b0 (patch)
tree21ec7dd22b49fff63dd92f56793224e871627f69 /pppdump
parent0ef528de9025051a4ab82e73ffd013edf2d6e4c5 (diff)
downloadppp-509f04959ad891d7f981f035ed461d51bd1f74b0.tar.gz
The use of <net/ppp_defs.h> isn't guranteed to exist on Linux (e.g. uclibc, buildroot, others)
The one provided by glibc simply includes <linux/ppp_defs.h>. This include is still needed on SunOS Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
Diffstat (limited to 'pppdump')
-rw-r--r--pppdump/bsd-comp.c1
-rw-r--r--pppdump/deflate.c1
-rw-r--r--pppdump/ppp-comp.h6
-rw-r--r--pppdump/pppdump.c2
4 files changed, 7 insertions, 3 deletions
diff --git a/pppdump/bsd-comp.c b/pppdump/bsd-comp.c
index 7ad6289..57f936c 100644
--- a/pppdump/bsd-comp.c
+++ b/pppdump/bsd-comp.c
@@ -46,7 +46,6 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-#include <net/ppp_defs.h>
#include "ppp-comp.h"
diff --git a/pppdump/deflate.c b/pppdump/deflate.c
index 0f090b2..ebc1692 100644
--- a/pppdump/deflate.c
+++ b/pppdump/deflate.c
@@ -41,7 +41,6 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
-#include <net/ppp_defs.h>
#include "ppp-comp.h"
#include "zlib.h"
diff --git a/pppdump/ppp-comp.h b/pppdump/ppp-comp.h
index 4046a1f..0199b5f 100644
--- a/pppdump/ppp-comp.h
+++ b/pppdump/ppp-comp.h
@@ -51,6 +51,12 @@
#define DO_PREDICTOR_1 0
#define DO_PREDICTOR_2 0
+#if defined(SOL2)
+#include <net/ppp_defs.h>
+#else
+#include <linux/ppp_defs.h>
+#endif
+
/*
* Structure giving methods for compression/decompression.
*/
diff --git a/pppdump/pppdump.c b/pppdump/pppdump.c
index 8944ca5..2b815fc 100644
--- a/pppdump/pppdump.c
+++ b/pppdump/pppdump.c
@@ -38,7 +38,7 @@
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
-#include <net/ppp_defs.h>
+
#include "ppp-comp.h"
int hexmode;