From: Michael Wallner Date: Mon, 28 Nov 2016 13:21:18 +0000 (+0100) Subject: travis: try RTLD_DEFAULT X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3eb42b54ab141d3b25b6fff0cdec860f93e37617;p=m6w6%2Fext-psi travis: try RTLD_DEFAULT --- diff --git a/src/types/decl.c b/src/types/decl.c index 9c1b0c5..5ab3664 100644 --- a/src/types/decl.c +++ b/src/types/decl.c @@ -107,7 +107,10 @@ static inline bool psi_decl_validate_func(struct psi_data *data, #ifndef RTLD_NEXT # define RTLD_NEXT ((void *) -1l) #endif - decl->sym = dlsym(dl ?: RTLD_NEXT, func->var->name); +#ifndef RTLD_DEFAULT +# define RTLD_DEFAULT ((void *) 0) +#endif + decl->sym = dlsym(dl ?: RTLD_DEFAULT, func->var->name); if (!decl->sym) { data->error(data, func->token, PSI_WARNING, "Failed to locate symbol '%s': %s", func->var->name,