]> granicus.if.org Git - postgresql/commit
Modernize dlopen interface code for FreeBSD and OpenBSD.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Apr 2011 19:14:51 +0000 (15:14 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Apr 2011 19:14:51 +0000 (15:14 -0400)
commitd5b9c9f7335d87dfa3adf171e7a00c8c6cd9b62f
tree3e421bab59bde33ff3f1b8d9b8e2c2c2ad03164e
parent5d3853a7fa40b28b44b14084863fd83a188c9a9e
Modernize dlopen interface code for FreeBSD and OpenBSD.

Remove the hard-wired assumption that __mips__ (and only __mips__) lacks
dlopen in FreeBSD and OpenBSD.  This assumption is outdated at least for
OpenBSD, as per report from an anonymous 9.1 tester.  We can perfectly well
use HAVE_DLOPEN instead to decide which code to use.

Some other cosmetic adjustments to make freebsd.c, netbsd.c, and openbsd.c
exactly alike.
src/backend/port/dynloader/freebsd.c
src/backend/port/dynloader/netbsd.c
src/backend/port/dynloader/openbsd.c