зеркало из 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 XP_UNIX
|
||||||
#ifdef USE_DLFCN
|
#ifdef USE_DLFCN
|
||||||
#include <dlfcn.h>
|
#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)
|
#elif defined(USE_HPSHL)
|
||||||
#include <dl.h>
|
#include <dl.h>
|
||||||
#elif defined(USE_MACH_DYLD)
|
#elif defined(USE_MACH_DYLD)
|
||||||
#include <mach-o/dyld.h>
|
#include <mach-o/dyld.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define this on systems which don't have it (AIX) */
|
|
||||||
#ifndef RTLD_LAZY
|
|
||||||
#define RTLD_LAZY RTLD_NOW
|
|
||||||
#endif
|
|
||||||
#endif /* XP_UNIX */
|
#endif /* XP_UNIX */
|
||||||
|
|
||||||
#define _PR_DEFAULT_LD_FLAGS PR_LD_LAZY
|
#define _PR_DEFAULT_LD_FLAGS PR_LD_LAZY
|
||||||
|
|
Загрузка…
Ссылка в новой задаче