From 4db28b99d2b2d0af1ea2951e166a25d716285da9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Thu, 30 Oct 2014 19:52:12 +0100 Subject: [PATCH] - glxext.h references undefined type, fix this - rel 2 --- Mesa.spec | 4 +++- missing-type.patch | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 missing-type.patch diff --git a/Mesa.spec b/Mesa.spec index c9dbba3..358b2d2 100644 --- a/Mesa.spec +++ b/Mesa.spec @@ -37,11 +37,12 @@ Summary: Free OpenGL implementation Summary(pl.UTF-8): Wolnodostępna implementacja standardu OpenGL Name: Mesa Version: 10.3.2 -Release: 1 +Release: 2 License: MIT (core) and others - see license.html file Group: X11/Libraries Source0: ftp://ftp.freedesktop.org/pub/mesa/%{version}/%{name}Lib-%{version}.tar.bz2 # Source0-md5: c0a2a975899c4e7485124b388c16cd2f +Patch0: missing-type.patch URL: http://www.mesa3d.org/ BuildRequires: autoconf >= 2.60 BuildRequires: automake @@ -1006,6 +1007,7 @@ ATI Radeon oparte na układach Southern Islands. %prep %setup -q +%patch0 -p1 %build %{__libtoolize} diff --git a/missing-type.patch b/missing-type.patch new file mode 100644 index 0000000..9c8323b --- /dev/null +++ b/missing-type.patch @@ -0,0 +1,11 @@ +--- Mesa-10.3.2/include/GL/glxext.h~ 2014-10-22 16:37:26.000000000 +0200 ++++ Mesa-10.3.2/include/GL/glxext.h 2014-10-30 19:49:51.561677653 +0100 +@@ -477,6 +477,8 @@ + + #ifndef GLX_NV_copy_buffer + #define GLX_NV_copy_buffer 1 ++#include ++typedef ptrdiff_t GLintptr; + typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); + #ifdef GLX_GLXEXT_PROTOTYPES -- 2.44.0