s/DL_LAZY/RTLD_LAZY/

This commit is contained in:
skrll 2003-08-01 07:04:31 +00:00
parent 5edbacc575
commit d4773575b3
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ int main(void)
* Test that an error set by dlopen() persists past a successful
* dlopen() call.
*/
handle = dlopen("libnonexistent.so", DL_LAZY);
handle = dlopen("libm.so", DL_LAZY);
handle = dlopen("libnonexistent.so", RTLD_LAZY);
handle = dlopen("libm.so", RTLD_LAZY);
error = dlerror();
if (error == NULL)
errx(1, "Failed: dlerror() was cleared by successful dlopen()\n");

View File

@ -13,7 +13,7 @@ int main(void)
* include libm.so.
*/
handle = dlopen("libm.so", DL_LAZY);
handle = dlopen("libm.so", RTLD_LAZY);
error = dlerror();
if (error != NULL)
errx(1, "Error opening libm.so: %s", error);