summaryrefslogtreecommitdiff
path: root/graphics/utah-glx/files/patch-ba
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/utah-glx/files/patch-ba')
-rw-r--r--graphics/utah-glx/files/patch-ba15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/utah-glx/files/patch-ba b/graphics/utah-glx/files/patch-ba
new file mode 100644
index 000000000000..252f0e6080ce
--- /dev/null
+++ b/graphics/utah-glx/files/patch-ba
@@ -0,0 +1,15 @@
+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;
+ }