add missing unload_dso() for mac

This commit is contained in:
David Rose 2009-01-31 20:29:51 +00:00
parent cc61603a3f
commit 3820660b95
1 changed files with 5 additions and 0 deletions

View File

@ -137,6 +137,11 @@ void * load_dso(const DSearchPath &path, const Filename &filename)
return answer;
}
bool
unload_dso(void *dso_handle) {
return dlclose(dso_handle)==0;
}
string
load_dso_error() {
char *message = dlerror();