From 509f04959ad891d7f981f035ed461d51bd1f74b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eivind=20N=C3=A6ss?= Date: Mon, 30 May 2022 20:50:55 -0700 Subject: [PATCH] The use of isn't guranteed to exist on Linux (e.g. uclibc, buildroot, others) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The one provided by glibc simply includes . This include is still needed on SunOS Signed-off-by: Eivind Næss --- pppd/ccp.c | 6 +++++- pppd/chap_ms.c | 6 +++++- pppd/peap.c | 1 - pppd/pppd.h | 4 ++++ pppd/sha1.c | 1 - pppdump/bsd-comp.c | 1 - pppdump/deflate.c | 1 - pppdump/ppp-comp.h | 6 ++++++ pppdump/pppdump.c | 2 +- 9 files changed, 21 insertions(+), 7 deletions(-) diff --git a/pppd/ccp.c b/pppd/ccp.c index cfe94f8..088a163 100644 --- a/pppd/ccp.c +++ b/pppd/ccp.c @@ -36,11 +36,15 @@ #include #include +#if defined(SOL2) +#include +#else +#include +#endif #include "pppd.h" #include "fsm.h" #include "ccp.h" -#include #include "chap_ms.h" #include "mppe.h" diff --git a/pppd/chap_ms.c b/pppd/chap_ms.c index e7e8cba..8e59280 100644 --- a/pppd/chap_ms.c +++ b/pppd/chap_ms.c @@ -87,6 +87,11 @@ #include #include #include +#if defined(SOL2) +#include +#else +#include +#endif #include "pppd.h" #include "chap-new.h" @@ -130,7 +135,6 @@ static char *mschap2_peer_challenge = NULL; #include "fsm.h" /* Need to poke MPPE options */ #include "ccp.h" -#include #endif /* diff --git a/pppd/peap.c b/pppd/peap.c index 414fa11..d6e5fcf 100644 --- a/pppd/peap.c +++ b/pppd/peap.c @@ -56,7 +56,6 @@ #include #include #include -#include #include "pppd.h" #include "eap.h" diff --git a/pppd/pppd.h b/pppd/pppd.h index d7b431d..e59e0e5 100644 --- a/pppd/pppd.h +++ b/pppd/pppd.h @@ -53,7 +53,11 @@ #include #include #include /* for u_int32_t, if defined */ +#if defined(SOL2) #include +#else +#include +#endif #ifdef PPP_WITH_IPV6CP #if defined(SOL2) diff --git a/pppd/sha1.c b/pppd/sha1.c index efb37be..4fc5345 100644 --- a/pppd/sha1.c +++ b/pppd/sha1.c @@ -23,7 +23,6 @@ #include #include #include /* htonl() */ -#include #include "sha1.h" static void 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 #include #include -#include #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 #include #include -#include #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 +#else +#include +#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 #include #include -#include + #include "ppp-comp.h" int hexmode; -- 2.39.2