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:
wtc%netscape.com 1999-11-15 00:07:00 +00:00
parent 3ac1556fa6
commit e3febb50ba

View File

@ -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