Add RTLD_FIRST flag to dlopen calls.

This commit is contained in:
Robert Lunnon 2005-05-10 15:13:20 +00:00 committed by Alexandre Julliard
parent 12f9bb7ab2
commit d7272dedc7

View file

@ -555,6 +555,10 @@ void wine_init( int argc, char *argv[], char *error, int error_size )
* parameter may be NULL if the error description is not required. * parameter may be NULL if the error description is not required.
*/ */
#ifndef RTLD_FIRST
#define RTLD_FIRST 0
#endif
/*********************************************************************** /***********************************************************************
* wine_dlopen * wine_dlopen
*/ */
@ -564,7 +568,7 @@ void *wine_dlopen( const char *filename, int flag, char *error, size_t errorsize
void *ret; void *ret;
const char *s; const char *s;
dlerror(); dlerror(); dlerror(); dlerror();
ret = dlopen( filename, flag ); ret = dlopen( filename, flag | RTLD_FIRST );
s = dlerror(); s = dlerror();
if (error && errorsize) if (error && errorsize)
{ {