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
1 changed files with 5 additions and 1 deletions

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.
*/
#ifndef RTLD_FIRST
#define RTLD_FIRST 0
#endif
/***********************************************************************
* wine_dlopen
*/
@ -564,7 +568,7 @@ void *wine_dlopen( const char *filename, int flag, char *error, size_t errorsize
void *ret;
const char *s;
dlerror(); dlerror();
ret = dlopen( filename, flag );
ret = dlopen( filename, flag | RTLD_FIRST );
s = dlerror();
if (error && errorsize)
{