diff options
author | Eivind Næss <eivnaes@yahoo.com> | 2022-05-30 20:50:55 -0700 |
---|---|---|
committer | Eivind Næss <eivnaes@yahoo.com> | 2022-07-15 15:25:39 -0700 |
commit | 509f04959ad891d7f981f035ed461d51bd1f74b0 (patch) | |
tree | 21ec7dd22b49fff63dd92f56793224e871627f69 /pppdump | |
parent | 0ef528de9025051a4ab82e73ffd013edf2d6e4c5 (diff) | |
download | ppp-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.c | 1 | ||||
-rw-r--r-- | pppdump/deflate.c | 1 | ||||
-rw-r--r-- | pppdump/ppp-comp.h | 6 | ||||
-rw-r--r-- | pppdump/pppdump.c | 2 |
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; |