From cc83d2275d893daf8a2247f92d747c12d10c4999 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 31 May 1999 16:42:16 +0000 Subject: [PATCH] (setup_passwd_quality_check): conditionalize on RTLD_NOW git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6286 ec53bebd-3082-4978-b11e-865c3cabbd6b --- kpasswd/kpasswdd.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kpasswd/kpasswdd.c b/kpasswd/kpasswdd.c index 05795a1de..05857f317 100644 --- a/kpasswd/kpasswdd.c +++ b/kpasswd/kpasswdd.c @@ -225,9 +225,17 @@ setup_passwd_quality_check(krb5_context context) void *handle; void *sym; int *version; + int flags; + +#ifdef RTLD_NOW + flags = RTLD_NOW; +#else + flags = 0; +#endif + if(check_library == NULL) return; - handle = dlopen(check_library, RTLD_NOW); + handle = dlopen(check_library, flags); if(handle == NULL) { krb5_warnx(context, "failed to open `%s'", check_library); return;