$NetBSD: patch-an,v 1.3 2009/09/02 22:30:34 wiz Exp $

--- src/glx/x11/dri_common.c.orig	2009-06-17 17:31:54.000000000 +0000
+++ src/glx/x11/dri_common.c
@@ -103,7 +103,11 @@ _X_HIDDEN void *driOpenDriver(const char
    int len;
 
    /* Attempt to make sure libGL symbols will be visible to the driver */
+#ifdef __NetBSD__
+   glhandle = dlopen("libGL.so", RTLD_NOW | RTLD_GLOBAL);
+#else
    glhandle = dlopen("libGL.so.1", RTLD_NOW | RTLD_GLOBAL);
+#endif
 
    libPaths = NULL;
    if (geteuid() == getuid()) {
