comparison src/dlopen.c @ 263:727739f917cb r20-5b30

Import from CVS: tag r20-5b30
author cvs
date Mon, 13 Aug 2007 10:24:41 +0200
parents 677f6a0ee643
children
comparison
equal deleted inserted replaced
262:9d8607af9e13 263:727739f917cb
87 87
88 file = XSTRING_DATA (library); 88 file = XSTRING_DATA (library);
89 /* #### Is this right? */ 89 /* #### Is this right? */
90 GET_C_CHARPTR_EXT_FILENAME_DATA_ALLOCA (file, file); 90 GET_C_CHARPTR_EXT_FILENAME_DATA_ALLOCA (file, file);
91 91
92 handle = dlopen (file, RTLD_LAZY); 92 #ifndef RTLD_GLOBAL
93 #define RTLD_GLOBAL 0
94 #endif
95 handle = dlopen (file, RTLD_LAZY|RTLD_GLOBAL);
93 if (handle == NULL) 96 if (handle == NULL)
94 { 97 {
95 signal_error (Qerror, 98 signal_error (Qerror,
96 list3 (build_translated_string ("Cannot load shared library"), 99 list3 (build_translated_string ("Cannot load shared library"),
97 library, build_translated_string (dlerror ()))); 100 library, build_translated_string (dlerror ())));