openbsd compile fix from nano

This commit is contained in:
Bill Currie 2003-06-05 16:08:10 +00:00
parent 54e8cb1cb2
commit 58c9203adc

View file

@ -120,7 +120,11 @@ static void *
pi_open_lib (const char *name, int global_syms) pi_open_lib (const char *name, int global_syms)
{ {
void *dlhand; void *dlhand;
#ifdef __OpenBSD__
int flags = RTLD_LAZY;
#else
int flags = RTLD_NOW; int flags = RTLD_NOW;
#endif
#if defined(HAVE_DLOPEN) #if defined(HAVE_DLOPEN)
# if defined(RTLD_GLOBAL) # if defined(RTLD_GLOBAL)