diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2001-11-15 16:08:15 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2001-11-15 16:08:15 +0000 |
commit | a6348ae33298ce2d1371e2071bb77b58de0039f0 (patch) | |
tree | 90fea62f727ae716a3e88448c5c2ea8398758330 /src | |
parent | 307e449e5fb704836290f817a458895d856414a7 (diff) | |
download | postgresql-a6348ae33298ce2d1371e2071bb77b58de0039f0.tar.gz postgresql-a6348ae33298ce2d1371e2071bb77b58de0039f0.zip |
Only use RTLD_GLOBAL when available, which it isn't in older releases of the OS.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/port/dynloader/osf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/backend/port/dynloader/osf.h b/src/backend/port/dynloader/osf.h index 88421319fda..f505ad1dff8 100644 --- a/src/backend/port/dynloader/osf.h +++ b/src/backend/port/dynloader/osf.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: osf.h,v 1.6 2001/11/05 17:46:27 momjian Exp $ + * $Id: osf.h,v 1.7 2001/11/15 16:08:15 petere Exp $ * *------------------------------------------------------------------------- */ @@ -28,6 +28,12 @@ * library as the file to be dynamically loaded. * */ + +/* RTLD_GLOBAL is not available in <5.x */ +#ifndef RTLD_GLOBAL +#define RTLD_GLOBAL 0 +#endif + #define pg_dlopen(f) dlopen((f), RTLD_LAZY | RTLD_GLOBAL) #define pg_dlsym(h, f) ((PGFunction) dlsym(h, f)) #define pg_dlclose(h) dlclose(h) |