Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita6348ae

Browse files
committed
Only use RTLD_GLOBAL when available, which it isn't in older releases of the OS.
1 parent307e449 commita6348ae

File tree

1 file changed

+7
-1
lines changed
  • src/backend/port/dynloader

1 file changed

+7
-1
lines changed

‎src/backend/port/dynloader/osf.h

Lines changed: 7 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: osf.h,v 1.6 2001/11/05 17:46:27 momjian Exp $
10+
* $Id: osf.h,v 1.7 2001/11/15 16:08:15 petere Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -28,6 +28,12 @@
2828
* library as the file to be dynamically loaded.
2929
*
3030
*/
31+
32+
/* RTLD_GLOBAL is not available in <5.x */
33+
#ifndefRTLD_GLOBAL
34+
#defineRTLD_GLOBAL 0
35+
#endif
36+
3137
#definepg_dlopen(f)dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
3238
#definepg_dlsym(h,f) ((PGFunction) dlsym(h, f))
3339
#definepg_dlclose(h)dlclose(h)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp