summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2008-06-03 21:26:32 +0000
committernpmccallum <npmccallum@c587cffe-e639-0410-9787-d7902ae8ed56>2008-06-03 21:26:32 +0000
commit197ba7edc0ce6f6758b198821a9c6bf7c1fd1932 (patch)
tree9eed1cc08174626c4a34c2aabc39c4b7396c9172
parent573777483f8f937aebb589a8415b38a1ae7f61ec (diff)
downloadlibproxy-git-197ba7edc0ce6f6758b198821a9c6bf7c1fd1932.tar.gz
Fix dlopen() on newer systems that enforce the presence of the RTLD_NOW flag
-rw-r--r--src/lib/proxy_factory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/proxy_factory.c b/src/lib/proxy_factory.c
index fc28323..1376563 100644
--- a/src/lib/proxy_factory.c
+++ b/src/lib/proxy_factory.c
@@ -334,7 +334,7 @@ px_proxy_factory_new ()
{
/* Load the plugin */
char *tmp = px_strcat(PLUGINDIR, "/", ent->d_name, NULL);
- void *plugin = dlopen(tmp, RTLD_LOCAL);
+ void *plugin = dlopen(tmp, RTLD_NOW | RTLD_LOCAL);
px_free(tmp);
if (!plugin)
continue;