projects
/
m6w6
/
ext-psi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
ef2ba75
)
travis: try RTLD_DEFAULT
author
Michael Wallner
<mike@php.net>
Mon, 28 Nov 2016 13:21:18 +0000
(14:21 +0100)
committer
Michael Wallner
<mike@php.net>
Mon, 28 Nov 2016 13:21:18 +0000
(14:21 +0100)
src/types/decl.c
patch
|
blob
|
history
diff --git
a/src/types/decl.c
b/src/types/decl.c
index 9c1b0c558b0ece04f22dc72c690824b2f56e332e..5ab3664d55bb83738534545b21232a020ff9e9f9 100644
(file)
--- 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,