836258e41e
- provide workarround for dlopen()/dlsym() bug in recent CURRENT/STABLE.
15 lines
489 B
Text
15 lines
489 B
Text
diff -druN servGL/hwglx/nv/riva_symbols.c servGL/hwglx/nv/riva_symbols.c
|
|
--- servGL/hwglx/nv/riva_symbols.c Sun Feb 13 22:02:30 2000
|
|
+++ servGL/hwglx/nv/riva_symbols.c Sun Nov 5 19:19:04 2000
|
|
@@ -29,9 +29,8 @@
|
|
static void *my_dlsym(void *handle, const char *name)
|
|
{
|
|
void *tmp = dlsym(handle, name);
|
|
- char *error;
|
|
- if ((error = dlerror()) != 0) {
|
|
- fputs(error, stderr);
|
|
+ if (tmp == NULL) {
|
|
+ fputs(dlerror(), stderr);
|
|
any_error = 1;
|
|
return 0;
|
|
}
|