use RTLD_NOW now that it works.

This commit is contained in:
christos 2010-01-13 20:18:24 +00:00
parent 12bd4dbd45
commit 14e255cf54
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ int main(void)
* dlopen() call.
*/
handle = dlopen("libnonexistent.so", RTLD_LAZY);
handle = dlopen("libm.so", RTLD_LAZY);
handle = dlopen("libm.so", RTLD_NOW);
error = dlerror();
if (error == NULL)
errx(1, "Failed: dlerror() was cleared by successful dlopen()\n");