diff options
| author | Brian Somers <brian@FreeBSD.org> | 1998-01-19 22:59:57 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1998-01-19 22:59:57 +0000 |
| commit | e2e26133df352c58e324e249db5c8c267163917d (patch) | |
| tree | 83f9fe4057cff8d74eea325fc67b1d7327e86231 | |
| parent | 677f680c33f5b3747f3b1f934e108adbb6184eb7 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/loadalias.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/ppp/loadalias.c b/usr.sbin/ppp/loadalias.c index 1125f635ef02..a95de6506f3a 100644 --- a/usr.sbin/ppp/loadalias.c +++ b/usr.sbin/ppp/loadalias.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: loadalias.c,v 1.12 1997/12/21 12:11:06 brian Exp $ + * $Id: loadalias.c,v 1.13 1998/01/14 01:23:05 brian Exp $ */ #include <sys/param.h> @@ -51,6 +51,10 @@ #define off(item) ((int)&(((struct aliasHandlers *)0)->item)) #define entry(a) { off(a), "_" #a } +#ifndef RTLD_NOW +#define RTLD_NOW 1 /* really RTLD_LAZY */ +#endif + static struct { int offset; const char *name; @@ -86,7 +90,7 @@ loadAliasHandlers(struct aliasHandlers * h) LogPrintf(LogALERT, "Ignoring environment _PATH_ALIAS_PREFIX" " value (%s)\n", env); - dl = dlopen(path, RTLD_LAZY); + dl = dlopen(path, RTLD_NOW); if (dl == (void *) 0) { /* Look for _PATH_ALIAS_PREFIX with any number appended */ int plen; @@ -129,7 +133,7 @@ loadAliasHandlers(struct aliasHandlers * h) if (maxver > -1) { sprintf(p + plen, "%ld", maxver); - dl = dlopen(p, RTLD_LAZY); + dl = dlopen(p, RTLD_NOW); } } } |
