provde RTLD_NOW and RTLD_GLOBAL if they don't exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15281 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -244,6 +244,13 @@ find_dynamic_method (krb5_context context,
|
||||
if (asprintf(&path, LIBDIR "/hdb_%s.so", prefix) == -1)
|
||||
krb5_errx(context, 1, "out of memory");
|
||||
|
||||
#ifndef RTLD_NOW
|
||||
#define RTLD_NOW 0
|
||||
#endif
|
||||
#ifndef RTLD_GLOBAL
|
||||
#define RTLD_GLOBAL 0
|
||||
#endif
|
||||
|
||||
dl = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
|
||||
if (dl == NULL) {
|
||||
krb5_warnx(context, "error trying to load dynamic module %s: %s\n",
|
||||
|
Reference in New Issue
Block a user