Revert "mesa_glinterop: remove inclusion of GLX header"
authorVinson Lee <vlee@freedesktop.org>
Mon, 3 Oct 2016 22:16:30 +0000 (15:16 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 10 Oct 2016 22:09:44 +0000 (15:09 -0700)
This reverts commit 8472045b16b3e4621553fe451a20a9ba9f0d44b6.

Conflicts:

include/GL/mesa_glinterop.h

This patch fixes this build error with GCC 4.4.

  Compiling src/glx/dri_common_interop.c ...
In file included from src/glx/dri_common_interop.c:33:
include/GL/mesa_glinterop.h:62: error: redefinition of typedef ‘GLXContext’
include/GL/glx.h:165: note: previous declaration of ‘GLXContext’ was here

Fixes: 8472045b16b3 ("mesa_glinterop: remove inclusion of GLX header")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96770
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
include/GL/mesa_glinterop.h

index 383d7f91aa8ae7d8728a48b584d8772da2b50dd1..c6a967ea8ec42ebf51bf72186035c8f394a2d876 100644 (file)
 
 #include <stddef.h>
 #include <stdint.h>
+#include <GL/glx.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-/* Forward declarations to avoid inclusion of GL/glx.h */
-typedef struct _XDisplay Display;
-typedef struct __GLXcontextRec *GLXContext;
-
 /* Forward declarations to avoid inclusion of EGL/egl.h */
 typedef void *EGLDisplay;
 typedef void *EGLContext;