mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
836258e41e
- provide workarround for dlopen()/dlsym() bug in recent CURRENT/STABLE.
17 lines
471 B
Plaintext
17 lines
471 B
Plaintext
diff -druN servGL/hwglx/s3savage/s3savglx.c servGL/hwglx/s3savage/s3savglx.c
|
|
--- servGL/hwglx/s3savage/s3savglx.c Sun Aug 20 08:50:25 2000
|
|
+++ servGL/hwglx/s3savage/s3savglx.c Sun Nov 5 19:20:54 2000
|
|
@@ -83,10 +83,9 @@
|
|
my_dlsym(void *handle, const char *name)
|
|
{
|
|
void *tmp = dlsym(handle, name);
|
|
- char *error;
|
|
-if ((error = dlerror()) != 0)
|
|
+ if (tmp == NULL)
|
|
{
|
|
- fputs(error, stderr);
|
|
+ fputs(dlerror(), stderr);
|
|
any_error = 1;
|
|
return 0;
|
|
}
|