]> git.ozlabs.org Git - ppp.git/commitdiff
Additional fixes for broken build
authorEivind Næss <eivnaes@yahoo.com>
Thu, 9 Mar 2023 23:59:19 +0000 (23:59 +0000)
committerEivind Næss <eivnaes@yahoo.com>
Fri, 17 Mar 2023 14:17:41 +0000 (14:17 +0000)
This change fixes the build when
- ./configure is run with --disable-plugins
- ./configure is run with --disable-peap --disable-eaptls
     --disable-microsoft-extensions

The latter disables the MPPE encryption too, but <pppd/crypto.h> is
still needed.

Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
pppd/options.c
pppd/plugins/radius/radius.c

index 214adaeca455dcb5638f87d4c541e6300136f748..42e39b8ea96c53950c71c69218d5a5803f2749c4 100644 (file)
@@ -452,9 +452,11 @@ ppp_get_path(ppp_path_t type, char *buf, size_t bufsz)
         case PPP_DIR_RUNTIME:
             path = PPP_PATH_VARRUN;
             break;
+#ifdef PPP_WITH_PLUGINS
         case PPP_DIR_PLUGIN:
             path = PPP_PATH_PLUGIN;
             break;
+#endif
         case PPP_DIR_CONF:
             path = PPP_PATH_CONFDIR;
             break;
@@ -477,10 +479,12 @@ ppp_get_filepath(ppp_path_t type, const char *name, char *buf, size_t bufsz)
         case PPP_DIR_RUNTIME:
             path = PPP_PATH_VARRUN;
             break;
+#ifdef PPP_WITH_PLUGINS
         case PPP_DIR_PLUGIN:
             path = PPP_PATH_PLUGIN;
             break;
-        case PPP_DIR_CONF:
+#endif
+       case PPP_DIR_CONF:
             path = PPP_PATH_CONFDIR;
             break;
         }
index 11cf27cfdd9dc023750d62685b3c5c5fe181f8e4..c73ca0b53ef82b07932fa304d667ff22e0d7db7a 100644 (file)
@@ -44,9 +44,9 @@ static char const RCSID[] =
 #include <pppd/chap_ms.h>
 #ifdef PPP_WITH_MPPE
 #include <pppd/mppe.h>
-#include <pppd/crypto.h>
 #endif
 #endif
+#include <pppd/crypto.h>
 #include <pppd/fsm.h>
 #include <pppd/ipcp.h>