aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2023-02-15 04:39:32 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2023-02-15 04:39:32 +0000
commit46295812c6a411741c04ba87345e08216ff0c6c3 (patch)
treeb861cba2ac0d877049657bdb028b929017bc3982
parent17e9745faeded5cdf8b4d031eb17df32668565fe (diff)
downloadports-46295812c6a411741c04ba87345e08216ff0c6c3.tar.gz
ports-46295812c6a411741c04ba87345e08216ff0c6c3.zip
games/egl: unbreak the port's build against Clang 15
Add #include "x11_linux.h" to obtain the prototype for the X11_GetAuxKeyRemapName() function, otherwise compiler does not know its return value and defaults to `int': unix/unix_glimp.c:117:5: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] Reported by: pkg-fallout
-rw-r--r--games/egl/files/patch-unix__unix_glimp.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/games/egl/files/patch-unix__unix_glimp.c b/games/egl/files/patch-unix__unix_glimp.c
index 82e220eb6db9..3fe1860452ba 100644
--- a/games/egl/files/patch-unix__unix_glimp.c
+++ b/games/egl/files/patch-unix__unix_glimp.c
@@ -1,6 +1,18 @@
---- unix/unix_glimp.c.orig Mon Jul 24 16:42:03 2006
-+++ unix/unix_glimp.c Mon Jul 24 16:47:48 2006
-@@ -41,6 +41,9 @@
+--- unix/unix_glimp.c.orig 2006-06-03 19:24:54 UTC
++++ unix/unix_glimp.c
+@@ -31,16 +31,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ #include <signal.h>
+ #include <dlfcn.h>
+
+-#include "../renderer/r_local.h"
+-#include "../client/cl_local.h"
++#include "../shared/shared.h"
+ #include "unix_glimp.h"
+ #include "unix_local.h"
++#include "x11_linux.h"
+
+ static qBool vid_queueRestart;
+ static qBool vid_isActive;
glxState_t glxState = {.OpenGLLib = NULL};
@@ -10,7 +22,7 @@
/*
=============================================================================
-@@ -208,8 +211,8 @@
+@@ -208,8 +211,8 @@ void VID_Init (refConfig_t *outConfig)
vid_fullscreen = Cvar_Register ("vid_fullscreen", "0", CVAR_ARCHIVE);
// Add some console commands that we want to handle
@@ -21,7 +33,7 @@
// Start the graphics mode and load refresh DLL
vid_isActive = qFalse;
-@@ -232,8 +235,8 @@
+@@ -232,8 +235,8 @@ void VID_Shutdown (void)
vid_isActive = qFalse;
}