summaryrefslogtreecommitdiff
path: root/pppdump/ppp-comp.h
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/ppp-comp.h
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/ppp-comp.h')
-rw-r--r--pppdump/ppp-comp.h6
1 files changed, 6 insertions, 0 deletions
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.
*/