diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-02-13 05:10:06 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-02-13 05:10:06 +0000 |
commit | 64e7adb07b252ba4b6d6990bf6dad2105e072105 (patch) | |
tree | d5942287e79818d0d1bdf31b8167f040b7d7246b /src/backend/port/dynloader/bsd.c | |
parent | e3f222466498260a97b2559d539398bad9e6ccff (diff) | |
download | postgresql-64e7adb07b252ba4b6d6990bf6dad2105e072105.tar.gz postgresql-64e7adb07b252ba4b6d6990bf6dad2105e072105.zip |
From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
Apart from this Makefile hack, all I've done is to make dynamically
loaded code modules fail properly (as was already done for __mips__,
although I think this is too loose: I believe NetBSD for the pmax can
do dynamic linking), and to add test-and-set lock handling. As Bruce
suggested, this is done in a maximally efficient inlined way: I was
not aware that this code was so important, speed-wise.
Diffstat (limited to 'src/backend/port/dynloader/bsd.c')
-rw-r--r-- | src/backend/port/dynloader/bsd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/port/dynloader/bsd.c b/src/backend/port/dynloader/bsd.c index b1c0c3d1d3c..8c9f680a812 100644 --- a/src/backend/port/dynloader/bsd.c +++ b/src/backend/port/dynloader/bsd.c @@ -61,7 +61,7 @@ BSD44_derived_dlerror(void) void * BSD44_derived_dlopen(const char *file, int num) { -#ifdef __mips__ +#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) sprintf(error_message, "dlopen (%s) not supported", file); return NULL; #else @@ -78,7 +78,7 @@ BSD44_derived_dlopen(const char *file, int num) void * BSD44_derived_dlsym(void *handle, const char *name) { -#ifdef __mips__ +#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) sprintf(error_message, "dlsym (%s) failed", name); return NULL; #else @@ -101,7 +101,8 @@ BSD44_derived_dlsym(void *handle, const char *name) void BSD44_derived_dlclose(void *handle) { -#ifndef __mips__ +#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) +#else dlclose(handle); #endif } |