http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver] / hacks / glx / glut_stroke.c
index b7a783d1a705fe53f9b46e9ce80b63c8214e9e4a..5ff3de5cfda27552e0be93b0db1fbd7178ce5f6f 100644 (file)
@@ -8,8 +8,14 @@
 #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
+# ifdef HAVE_COCOA
+#  include <OpenGL/gl.h>
+# else
+#  include <GL/gl.h>
+# endif
 # undef APIENTRY
 # define APIENTRY /**/
 #endif