Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.

This commit is contained in:
Alvaro Herrera 2008-03-05 21:20:49 +00:00
parent afe57e993b
commit 6bf887cadc
1 changed files with 3 additions and 4 deletions

View File

@ -59,7 +59,7 @@ BSD44_derived_dlerror(void)
void *
BSD44_derived_dlopen(const char *file, int num)
{
#if defined(__mips__)
#if !defined(HAVE_DLOPEN)
snprintf(error_message, sizeof(error_message),
"dlopen (%s) not supported", file);
return NULL;
@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num)
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
#if defined(__mips__)
#if !defined(HAVE_DLOPEN)
snprintf(error_message, sizeof(error_message),
"dlsym (%s) failed", name);
return NULL;
@ -101,8 +101,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
void
BSD44_derived_dlclose(void *handle)
{
#if defined(__mips__)
#else
#if defined(HAVE_DLOPEN)
dlclose(handle);
#endif
}