1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

Use RTLD_GLOBAL flag for dlopen-style dynamic loaders.

This commit is contained in:
Peter Eisentraut
2001-05-14 21:45:53 +00:00
parent 83966889ed
commit c87bc779d4
18 changed files with 44 additions and 49 deletions

View File

@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: netbsd.h,v 1.3 2001/02/10 02:31:26 tgl Exp $
* $Id: netbsd.h,v 1.4 2001/05/14 21:45:53 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -33,7 +33,7 @@
* begin with an underscore is fairly tricky, and some versions of
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
*/
#define pg_dlopen(f) BSD44_derived_dlopen(f, 1)
#define pg_dlopen(f) BSD44_derived_dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
#define pg_dlsym BSD44_derived_dlsym
#define pg_dlclose BSD44_derived_dlclose
#define pg_dlerror BSD44_derived_dlerror