mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
Fix for old FreeBSD versions that don't have RTLD_GLOBAL
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: freebsd.h,v 1.13 2001/11/05 17:46:27 momjian Exp $
|
* $Id: freebsd.h,v 1.14 2002/02/11 21:38:11 petere Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -34,6 +34,11 @@
|
|||||||
* begin with an underscore is fairly tricky, and some versions of
|
* begin with an underscore is fairly tricky, and some versions of
|
||||||
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
|
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef RTLD_GLOBAL
|
||||||
|
#define RTLD_GLOBAL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define pg_dlopen(f) BSD44_derived_dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
|
#define pg_dlopen(f) BSD44_derived_dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
|
||||||
#define pg_dlsym BSD44_derived_dlsym
|
#define pg_dlsym BSD44_derived_dlsym
|
||||||
#define pg_dlclose BSD44_derived_dlclose
|
#define pg_dlclose BSD44_derived_dlclose
|
||||||
|
Reference in New Issue
Block a user