Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games/retroarch: fix build on all versions and enable on non-x86
Do not depend on svgalib where svgalib is not supported. Do not enable code using memfd_create() where that is not supported. PR: 274647
- Loading branch information
1 parent
841f9af
commit 30a1253
Showing
3 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- gfx/common/wayland_common.c.orig 2023-11-06 19:16:56 UTC | ||
+++ gfx/common/wayland_common.c | ||
@@ -419,7 +419,7 @@ bool gfx_ctx_wl_get_metrics_common(void *data, | ||
static int create_shm_file(off_t size) | ||
{ | ||
int fd, ret; | ||
- if ((fd = syscall(SYS_memfd_create, SPLASH_SHM_NAME, | ||
+ if ((fd = memfd_create(SPLASH_SHM_NAME, | ||
MFD_CLOEXEC | MFD_ALLOW_SEALING)) >= 0) | ||
{ | ||
fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- input/input_keymaps.c.orig 2023-11-06 19:58:13 UTC | ||
+++ input/input_keymaps.c | ||
@@ -54,7 +54,7 @@ | ||
#include "SDL.h" | ||
#endif | ||
|
||
-#if defined(__linux__) || defined(HAVE_WAYLAND) | ||
+#if defined(__linux__) || defined(HAVE_WAYLAND) || defined(__FreeBSD__) | ||
#if defined(__linux__) | ||
#include <linux/input.h> | ||
#include <linux/kd.h> | ||
@@ -1130,7 +1130,7 @@ const struct rarch_key_map rarch_key_map_x11[] = { | ||
}; | ||
#endif | ||
|
||
-#if defined(__linux__) || defined(HAVE_WAYLAND) | ||
+#if defined(__linux__) || defined(HAVE_WAYLAND) || defined(__FreeBSD__) | ||
/* Note: Only one input can be mapped to each | ||
* RETROK_* key. If several physical inputs | ||
* correspond to the same key, these inputs |