From http://www.jwz.org/xscreensaver/xscreensaver-5.16.tar.gz
[xscreensaver] / hacks / glx / glut_swidth.c
index 076858660b324fb8f7c5ab037fb36423428a26c2..185571d167cd31e0da097c10e97adad56c4741b8 100644 (file)
@@ -8,8 +8,16 @@
 #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