From: Eivind Næss Date: Tue, 31 May 2022 03:50:55 +0000 (-0700) Subject: The use of isn't guranteed to exist on Linux (e.g. uclibc, buildroot... X-Git-Tag: ppp-2.5.0~36^2~2 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=509f04959ad891d7f981f035ed461d51bd1f74b0 The use of isn't guranteed to exist on Linux (e.g. uclibc, buildroot, others) The one provided by glibc simply includes . This include is still needed on SunOS Signed-off-by: Eivind Næss --- 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;