-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
16 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
--- a/kitty/safe-wrappers.h | ||
+++ b/kitty/safe-wrappers.h | ||
@@ -8,6 +8,10 @@ | ||
#include "data-types.h" | ||
#include <fcntl.h> | ||
#include <sys/mman.h> | ||
diff -u -r ../kitty-0.36.4/kitty/safe-wrappers.h ./kitty/safe-wrappers.h | ||
--- ../kitty-0.36.4/kitty/safe-wrappers.h 2024-09-27 04:50:49.000000000 +0000 | ||
+++ ./kitty/safe-wrappers.h 2024-09-27 21:59:57.340501152 +0000 | ||
@@ -12,6 +12,11 @@ | ||
#include <stdlib.h> | ||
#include <unistd.h> | ||
|
||
+#ifdef __ANDROID__ | ||
+int shm_open(const char *, int, mode_t); | ||
+int shm_unlink(const char *); | ||
+#endif | ||
|
||
|
||
+ | ||
static inline int | ||
safe_lockf(int fd, int function, off_t size) { | ||
while (true) { |
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,15 @@ | ||
diff -u -r ../kitty-0.36.4/kitty/systemd.c ./kitty/systemd.c | ||
--- ../kitty-0.36.4/kitty/systemd.c 2024-09-27 04:50:49.000000000 +0000 | ||
+++ ./kitty/systemd.c 2024-09-27 22:29:07.912178101 +0000 | ||
@@ -51,6 +51,11 @@ | ||
ensure_initialized(void) { | ||
if (systemd.initialized) return; | ||
systemd.initialized = true; | ||
+#ifdef __ANDROID__ | ||
+ // Avoid an error log entry on each startup. | ||
+ systemd.lib = NULL; | ||
+ return; | ||
+#endif | ||
|
||
const char* libnames[] = { | ||
#if defined(_KITTY_SYSTEMD_LIBRARY) |
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