X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Foptions.c;fp=pppd%2Foptions.c;h=42e39b8ea96c53950c71c69218d5a5803f2749c4;hb=11febba74597dc22b1f2611db14537e3e81a11bc;hp=214adaeca455dcb5638f87d4c541e6300136f748;hpb=1fe5196b10fc30b1dfb8b4b0ac5bf2b6fa49c297;p=ppp.git diff --git a/pppd/options.c b/pppd/options.c index 214adae..42e39b8 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -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; }