OSDN Git Service

Modernize dlopen interface code for FreeBSD and OpenBSD.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Apr 2011 19:14:44 +0000 (15:14 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 Apr 2011 19:14:44 +0000 (15:14 -0400)
commitbb3051e4c2d7b42516d55925edefb4934b902374
tree0d4880a530d2e4fb1d9077be175fc93f4b9532a7
parente2c946018fe27e5b21d8e2cd00d05f33b19709a4
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