mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
836258e41e
- provide workarround for dlopen()/dlsym() bug in recent CURRENT/STABLE.
16 lines
435 B
Plaintext
16 lines
435 B
Plaintext
diff -druN libGL/pointers.c libGL/pointers.c
|
|
--- libGL/pointers.c Wed Jan 26 15:28:36 2000
|
|
+++ libGL/pointers.c Sun Nov 5 19:21:46 2000
|
|
@@ -332,9 +332,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;
|
|
}
|