summaryrefslogtreecommitdiff
path: root/pppd/chap_ms.c
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 /pppd/chap_ms.c
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 'pppd/chap_ms.c')
-rw-r--r--pppd/chap_ms.c6
1 files changed, 5 insertions, 1 deletions
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 <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
+#if defined(SOL2)
+#include <net/ppp-comp.h>
+#else
+#include <linux/ppp-comp.h>
+#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 <net/ppp-comp.h>
#endif
/*