mirror of https://github.com/postgres/postgres
Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.
This commit is contained in:
parent
afe57e993b
commit
6bf887cadc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue