summaryrefslogtreecommitdiff
path: root/src/backend/port/dynloader/bsd.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-03-14 16:03:33 +0000
committerBruce Momjian <bruce@momjian.us>1999-03-14 16:03:33 +0000
commitaba8c12f679c2324fa42e718beab8e9d57409102 (patch)
treead8d1616fae148f4965555490450fda011b1694c /src/backend/port/dynloader/bsd.c
parente94fffc1c1c822b16b82dcf7dab8d82ed2625d3d (diff)
We have tested the patches on three platforms:
NetBSD/macppc LinuxPPC FreeBSD 2.2.6-RELEASE All of them seem happy with the regression test. Note that, however, compiling with optimization enabled on NetBSD/macppc causes an initdb failure (other two platforms are ok). After checking the asm code, we are suspecting that might be a compiler(egcs) bug. Tatsuo Ishii
Diffstat (limited to 'src/backend/port/dynloader/bsd.c')
-rw-r--r--src/backend/port/dynloader/bsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/port/dynloader/bsd.c b/src/backend/port/dynloader/bsd.c
index 48d0d3cc413..c54b2e00237 100644
--- a/src/backend/port/dynloader/bsd.c
+++ b/src/backend/port/dynloader/bsd.c
@@ -79,6 +79,8 @@ BSD44_derived_dlsym(void *handle, const char *name)
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax))
sprintf(error_message, "dlsym (%s) failed", name);
return NULL;
+#elif defined(__ELF__)
+ return dlsym(handle, name);
#else
void *vp;
char buf[BUFSIZ];