Commit d7272ded authored by Robert Lunnon's avatar Robert Lunnon Committed by Alexandre Julliard

Add RTLD_FIRST flag to dlopen calls.

parent 12f9bb7a
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment