mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
3ac1556fa6
commit
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
|
||||
|
Loading…
Reference in New Issue
Block a user