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
Родитель 3ac1556fa6
Коммит e3febb50ba
1 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

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