--- GL/glx/glxdri.c 2007-01-18 19:35:08.000000000 +0000 +++ GL/glx/glxdri.c 2007-01-18 20:09:46.000000000 +0000 @@ -914,10 +914,10 @@ goto handle_error; } - fd = drmOpen(NULL, BusID); + fd = drmOpenOnce(NULL, BusID, &junk); if (fd < 0) { - LogMessage(X_ERROR, "AIGLX error: drmOpen failed (%s)\n", + LogMessage(X_ERROR, "AIGLX error: drmOpenOnce failed (%s)\n", strerror(-fd)); goto handle_error; } @@ -1082,7 +1082,7 @@ xfree(dev_priv); if (fd >= 0) - drmClose(fd); + drmCloseOnce(fd); DRICloseConnection(pScreen);