зеркало из https://github.com/mozilla/gecko-dev.git
Bugzilla bug #18826: some systems don't have RTLD_LOCAL defined. Thanks
to dejong@cs.umn.edu for the bug report and suggested fix.
This commit is contained in:
Родитель
3ac1556fa6
Коммит
e3febb50ba
|
@ -39,16 +39,18 @@
|
|||
#ifdef XP_UNIX
|
||||
#ifdef USE_DLFCN
|
||||
#include <dlfcn.h>
|
||||
/* Define these on systems that don't have them. */
|
||||
#ifndef RTLD_LAZY
|
||||
#define RTLD_LAZY RTLD_NOW
|
||||
#endif
|
||||
#ifndef RTLD_LOCAL
|
||||
#define RTLD_LOCAL 0
|
||||
#endif
|
||||
#elif defined(USE_HPSHL)
|
||||
#include <dl.h>
|
||||
#elif defined(USE_MACH_DYLD)
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
|
||||
/* Define this on systems which don't have it (AIX) */
|
||||
#ifndef RTLD_LAZY
|
||||
#define RTLD_LAZY RTLD_NOW
|
||||
#endif
|
||||
#endif /* XP_UNIX */
|
||||
|
||||
#define _PR_DEFAULT_LD_FLAGS PR_LD_LAZY
|
||||
|
|
Загрузка…
Ссылка в новой задаче