Only use RTLD_GLOBAL when available, which it isn't in older releases of the OS.
authorPeter Eisentraut <[email protected]>
Thu, 15 Nov 2001 16:08:15 +0000 (16:08 +0000)
committerPeter Eisentraut <[email protected]>
Thu, 15 Nov 2001 16:08:15 +0000 (16:08 +0000)
src/backend/port/dynloader/osf.h

index 47244f7e8c0956f4b961399ab94c0fe350ec0f76..b0c7f11c3e1cbfadc5da10dabe55037be1f69212 100644 (file)
  * 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)