From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / glut_swidth.c
index fb389673c58de2b386ed128e0ec448ff749461d2..185571d167cd31e0da097c10e97adad56c4741b8 100644 (file)
@@ -8,8 +8,15 @@
 #if 0   /* for Mesa */
 # include "glutint.h"
 #else   /* for xscreensaver */
-# include "config.h"
-# include <GL/gl.h>
+# ifdef HAVE_CONFIG_H
+#  include "config.h"
+# endif
+# ifndef HAVE_COCOA
+#  include <GL/gl.h>
+# endif
+# ifdef HAVE_JWZGLES
+#  include "jwzgles.h"
+# endif /* HAVE_JWZGLES */
 # undef APIENTRY
 # define APIENTRY /**/
 #endif