  #  define GLAPIENTRY
  #endif /* WIN32 && !CYGWIN */
 diff -Naur Mesa-7.8.2/Makefile Mesa-7.8.2-haiku/Makefile
---- Mesa-7.8.2/Makefile	2010-06-16 21:22:57.033292288 +0000
-+++ Mesa-7.8.2-haiku/Makefile	2013-02-17 22:26:13.034340864 +0000
+--- Mesa-7.8.2/Makefile	2010-06-16 21:22:57.034865152 +0000
++++ Mesa-7.8.2-haiku/Makefile	2013-04-24 20:34:52.695468032 +0000
 @@ -84,6 +84,7 @@
  freebsd-dri \
  freebsd-dri-amd64 \

 #  define likely(x)   __builtin_expect(!!(x), 1)
 #  define unlikely(x) __builtin_expect(!!(x), 0)
 #else

+GLU_LIB_DEPS =  
+APP_LIB_DEPS = -lbe -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -l$(GLUT_LIB)
diff -Naur Mesa-7.8.2/include/GL/gl.h Mesa-7.8.2-haiku/include/GL/gl.h
--- Mesa-7.8.2/include/GL/gl.h	2010-04-27 21:41:21.061865984 +0000
+++ Mesa-7.8.2-haiku/include/GL/gl.h	2013-04-24 20:34:52.693895168 +0000
@@ -67,7 +67,8 @@
 #elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */
 #  define GLAPI extern
