$OpenBSD: patch-x11_blit_c,v 1.1 2004/06/25 00:14:38 robert Exp $
--- x11/blit.c.orig	Tue May  4 11:41:59 2004
+++ x11/blit.c	Fri Jun 25 02:14:46 2004
@@ -42,7 +42,9 @@
 static unsigned int    pixmap_bytes = 0;
 static bool            x11_byteswap = 0;
 static int             no_mitshm = 0;
+#if HAVE_GL
 static int             gl_error = 0;
+#endif
 
 #if HAVE_LIBXV
 static int             ver, rel, req, ev, err;
@@ -90,6 +92,7 @@
     return 0;
 }
 
+#if HAVE_GL
 static int
 catch_gl_error(Display * dpy, XErrorEvent * event)
 {
@@ -97,6 +100,7 @@
     gl_error++;
     return 0;
 }
+#endif
 
 /* ------------------------------------------------------------------------ */
 /* plain X11 stuff                                                          */
@@ -672,7 +676,9 @@
     STATUS_BROKEN  = 1,
     STATUS_CONVERT = 2,
     STATUS_XVIDEO  = 3,
+#if HAVE_GL
     STATUS_OPENGL  = 4,
+#endif
 };
 
 struct blit_state {
