freebsd-ports/graphics/utah-glx/files/patch-bc
Maxim Sobolev 836258e41e - Use tcl8.3;
- provide workarround for dlopen()/dlsym() bug in recent CURRENT/STABLE.
2000-11-06 08:18:46 +00:00

16 lines
501 B
Plaintext

diff -druN servGL/hwglx/common/x11_symbols.c servGL/hwglx/common/x11_symbols.c
--- servGL/hwglx/common/x11_symbols.c Mon Jan 17 09:11:02 2000
+++ servGL/hwglx/common/x11_symbols.c Sun Nov 5 19:22:44 2000
@@ -92,9 +92,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;
}