From: Kurt Van Dijck Date: Fri, 4 Oct 2019 17:40:46 +0000 (+0200) Subject: pppd: Include time.h header before using time_t X-Git-Tag: ppp-2.4.8~7 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=57edb1a0ebf3e25d824b22c75d1d95e0f378f74a;p=ppp.git pppd: Include time.h header before using time_t Since include/net/ppp_defs.h is used in both kernelspace and userland it is hard to include there. This commit fixes the problems in userspace code individually and leaves ppp_defs.h as-is. Signed-off-by: Kurt Van Dijck Signed-off-by: Paul Mackerras --- diff --git a/pppd/plugins/rp-pppoe/pppoe-discovery.c b/pppd/plugins/rp-pppoe/pppoe-discovery.c index 8b2e946..f19c6d8 100644 --- a/pppd/plugins/rp-pppoe/pppoe-discovery.c +++ b/pppd/plugins/rp-pppoe/pppoe-discovery.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "pppoe.h" diff --git a/pppd/sha1.c b/pppd/sha1.c index f4f975c..4e51cee 100644 --- a/pppd/sha1.c +++ b/pppd/sha1.c @@ -17,6 +17,7 @@ /* #define SHA1HANDSOFF * Copies data before messing with it. */ #include +#include #include /* htonl() */ #include #include "sha1.h"