From 31d0eb86f3081d965476beb186185d34fd697f61 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 27 Jul 2012 18:01:45 +0200 Subject: gl_common: fix compilation on OS X 10.8 As of OS X 10.8 Apple completely removed X11 from the system. gl_common.h was including gl.h using the path . This path comes from the X11 headers, which are missing in 10.8. Change gl_common.h to include gl.h from Apple's OpenGL implementation as if X11/XQuartz is not detected. --- libvo/gl_common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libvo') diff --git a/libvo/gl_common.h b/libvo/gl_common.h index 546127c91f..f42caa8fd1 100644 --- a/libvo/gl_common.h +++ b/libvo/gl_common.h @@ -33,8 +33,14 @@ #include "video_out.h" #include "csputils.h" +#if defined(CONFIG_GL_COCOA) && !defined(CONFIG_GL_X11) +#include +#include +#include +#else #include #include +#endif #include "libvo/gl_header_fixes.h" -- cgit v1.2.3