Skip to content

Commit 2bd15ad

Browse files
committed
Fix for old FreeBSD versions that don't have RTLD_GLOBAL
1 parent 6799a6c commit 2bd15ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backend/port/dynloader/freebsd.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: freebsd.h,v 1.13 2001/11/05 17:46:27 momjian Exp $
10+
* $Id: freebsd.h,v 1.14 2002/02/11 21:38:11 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -34,6 +34,11 @@
3434
* begin with an underscore is fairly tricky, and some versions of
3535
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
3636
*/
37+
38+
#ifndef RTLD_GLOBAL
39+
#define RTLD_GLOBAL 0
40+
#endif
41+
3742
#define pg_dlopen(f) BSD44_derived_dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
3843
#define pg_dlsym BSD44_derived_dlsym
3944
#define pg_dlclose BSD44_derived_dlclose

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy