~compiz-team/compiz-core/oneiric.force_output_detection

« back to all changes in this revision

Viewing changes to src/plugin.cpp

  • Committer: Sam Spilsbury
  • Date: 2011-08-22 10:48:12 UTC
  • mfrom: (2753.21.15 compiz-core)
  • Revision ID: sam.spilsbury@canonical.com-20110822104812-kounfdbe90q0sw96
Merge in changes from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
        return false;
155
155
    }
156
156
 
157
 
    dlhand = dlopen (file.c_str (), RTLD_LAZY);
 
157
    int open_flags = RTLD_LAZY;
 
158
#ifdef DEBUG
 
159
    // Do not unload the library during dlclose.
 
160
    open_flags |= RTLD_NODELETE;
 
161
    // Make the symbols available globally
 
162
    open_flags |= RTLD_GLOBAL;
 
163
#endif
 
164
    dlhand = dlopen (file.c_str (), open_flags);
158
165
    if (dlhand)
159
166
    {
160
167
        PluginGetInfoProc getInfo;