1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/graphics/utah-glx/files/patch-bg
Maxim Sobolev 836258e41e - Use tcl8.3;
- provide workarround for dlopen()/dlsym() bug in recent CURRENT/STABLE.
2000-11-06 08:18:46 +00:00

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;
}