SHA256
1
0
forked from pool/SDL2

Accepting request 736688 from home:sndirsch:branches:games

- sdl2-khronos.patch
  * fixes build on i586 (boo#1153455)

OBS-URL: https://build.opensuse.org/request/show/736688
OBS-URL: https://build.opensuse.org/package/show/games/SDL2?expand=0&rev=93
This commit is contained in:
Jan Engelhardt 2019-10-09 14:25:38 +00:00 committed by Git OBS Bridge
parent 8592ca6f75
commit c123f13205
3 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 9 13:34:31 UTC 2019 - Stefan Dirsch <sndirsch@suse.com>
- sdl2-khronos.patch
* fixes build on i586 (boo#1153455)
-------------------------------------------------------------------
Fri Aug 23 11:19:59 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@ -34,6 +34,7 @@ Source4: baselibs.conf
Patch1: sdl2-symvers.patch
Patch2: SDL2-endian.patch
Patch3: CVE-2019-13616.patch
Patch4: sdl2-khronos.patch
BuildRequires: cmake
BuildRequires: dos2unix
BuildRequires: gcc-c++

15
sdl2-khronos.patch Normal file
View File

@ -0,0 +1,15 @@
diff -u -r SDL2-2.0.10.orig/include/SDL_opengl_glext.h SDL2-2.0.10/include/SDL_opengl_glext.h
--- SDL2-2.0.10.orig/include/SDL_opengl_glext.h 2019-10-09 15:30:46.237981000 +0200
+++ SDL2-2.0.10/include/SDL_opengl_glext.h 2019-10-09 15:31:37.783940000 +0200
@@ -469,8 +469,9 @@
typedef long GLsizeiptr;
typedef long GLintptr;
#else
-typedef ptrdiff_t GLsizeiptr;
-typedef ptrdiff_t GLintptr;
+#include <KHR/khrplatform.h>
+typedef khronos_ssize_t GLsizeiptr;
+typedef khronos_intptr_t GLintptr;
#endif
#define GL_BUFFER_SIZE 0x8764
#define GL_BUFFER_USAGE 0x8765