s/DL_LAZY/RTLD_LAZY/
This commit is contained in:
parent
5edbacc575
commit
d4773575b3
@ -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");
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user