win32 fix

This commit is contained in:
Bill Currie 2003-06-05 17:51:49 +00:00
parent 58c9203adc
commit ce9ddfd186
1 changed files with 4 additions and 2 deletions

View File

@ -120,10 +120,12 @@ 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__ #ifndef _WIN32
# ifdef __OpenBSD__
int flags = RTLD_LAZY; int flags = RTLD_LAZY;
#else # else
int flags = RTLD_NOW; int flags = RTLD_NOW;
# endif
#endif #endif
#if defined(HAVE_DLOPEN) #if defined(HAVE_DLOPEN)