aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2008-03-05 21:20:49 +0000
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2008-03-05 21:20:49 +0000
commit6bf887cadc974039babc1d61d7aa3a79b99e0165 (patch)
tree64d577a3fdf33e219b0c848c03c6c40eb7d3a6d6 /src
parentafe57e993bea1c63527e8cde2971cb9d2fde9e75 (diff)
downloadpostgresql-6bf887cadc974039babc1d61d7aa3a79b99e0165.tar.gz
postgresql-6bf887cadc974039babc1d61d7aa3a79b99e0165.zip
Add support for dlopen on recent NetBSD/MIPS, per Rémi Zara.
Diffstat (limited to 'src')
-rw-r--r--src/backend/port/dynloader/netbsd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/port/dynloader/netbsd.c b/src/backend/port/dynloader/netbsd.c
index 72bd516597a..bd98b905e03 100644
--- a/src/backend/port/dynloader/netbsd.c
+++ b/src/backend/port/dynloader/netbsd.c
@@ -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
}