diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-03-05 21:20:49 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-03-05 21:20:49 +0000 |
commit | 6bf887cadc974039babc1d61d7aa3a79b99e0165 (patch) | |
tree | 64d577a3fdf33e219b0c848c03c6c40eb7d3a6d6 /src | |
parent | afe57e993bea1c63527e8cde2971cb9d2fde9e75 (diff) | |
download | postgresql-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.c | 7 |
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 } |