From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / glut_stroke.c
index b7a783d1a705fe53f9b46e9ce80b63c8214e9e4a..455e3db0dd4da49a4957f646fd3fc34b67d66149 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