diff options
author | Gabor Kovesdan <gabor@FreeBSD.org> | 2006-12-10 21:18:10 +0000 |
---|---|---|
committer | Gabor Kovesdan <gabor@FreeBSD.org> | 2006-12-10 21:18:10 +0000 |
commit | 87f8d0699e6d2a975be721199ecab929481f12c2 (patch) | |
tree | 82af496897dc9c0f58cfbfada7ff6faffb6b563d /net-p2p/verlihub/files/patch-plugins | |
parent | Upgrade to version 0.96.0626 and unbreak. (diff) |
- Add rc(8) script
- Fix plugin support
- Fix dependencies
- Modify doc-set
- Add database support for non-English hubs
- Installation fixes
- portlint(1)
PR: ports/102406
Submitted by: Pankov Pavel <pankov_p@mail.ru>
Approved by: erwin (mentor), maintainer timeout
Diffstat (limited to 'net-p2p/verlihub/files/patch-plugins')
-rw-r--r-- | net-p2p/verlihub/files/patch-plugins | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-p2p/verlihub/files/patch-plugins b/net-p2p/verlihub/files/patch-plugins new file mode 100644 index 000000000000..d8a1436dd5c5 --- /dev/null +++ b/net-p2p/verlihub/files/patch-plugins @@ -0,0 +1,45 @@ +diff -ruN src-orig/cpluginloader.cpp src/cpluginloader.cpp +--- src-orig/cpluginloader.cpp Fri Oct 1 15:19:44 2004 ++++ src/cpluginloader.cpp Thu Oct 12 17:16:22 2006 +@@ -40,6 +40,12 @@ + */ + bool nPlugin::cPluginLoader::Open() + { ++ /* ++ * Reset dlerror() since it can contain error from previous ++ * call to dlopen()/dlsym(). ++ */ ++ dlerror(); ++ + mHandle = dlopen(mFileName.c_str(), RTLD_NOW); + if(!mHandle || IsError()) // NOTE hte OR (||) operator evaluates only the first statement if that one is true + { +@@ -99,6 +105,12 @@ + */ + void * nPlugin::cPluginLoader::LoadSym(const char *name) + { ++ /* ++ * Reset dlerror() since it can contain error from previous ++ * call to dlopen()/dlsym(). ++ */ ++ dlerror(); ++ + void *func = dlsym( mHandle, name); + if(IsError()) + { +diff -ruN src-orig/tpluginbase.cpp src/tpluginbase.cpp +--- src-orig/tpluginbase.cpp Fri Oct 1 15:19:44 2004 ++++ src/tpluginbase.cpp Thu Oct 12 17:16:39 2006 +@@ -34,6 +34,12 @@ + */ + bool nPlugin::tPluginBase::Open() + { ++ /* ++ * Reset dlerror() since it can contain error from previous ++ * call to dlopen()/dlsym(). ++ */ ++ dlerror(); ++ + mHandle = dlopen(mFileName.c_str(), RTLD_NOW); + if(!mHandle) + { |