summaryrefslogtreecommitdiff
path: root/Ports/kakoune/patches/0001-Use-proc-self-exe-on-SerenityOS.patch
diff options
context:
space:
mode:
authordemostanis <demostanis@protonmail.com>2022-09-10 18:17:36 +0200
committerLinus Groh <mail@linusgroh.de>2022-10-14 13:37:29 +0200
commitfe94636ac3353e737299463a47e5afb0c6dd24ff (patch)
tree4ff1fba84f973c0244e40b91ba0b9ee97a086aa9 /Ports/kakoune/patches/0001-Use-proc-self-exe-on-SerenityOS.patch
parent68803590643280f43532c1588bfbd4107eba3fb9 (diff)
downloadserenity-fe94636ac3353e737299463a47e5afb0c6dd24ff.zip
Ports: Add a kakoune port
Diffstat (limited to 'Ports/kakoune/patches/0001-Use-proc-self-exe-on-SerenityOS.patch')
-rw-r--r--Ports/kakoune/patches/0001-Use-proc-self-exe-on-SerenityOS.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/Ports/kakoune/patches/0001-Use-proc-self-exe-on-SerenityOS.patch b/Ports/kakoune/patches/0001-Use-proc-self-exe-on-SerenityOS.patch
new file mode 100644
index 0000000000..10f18861d7
--- /dev/null
+++ b/Ports/kakoune/patches/0001-Use-proc-self-exe-on-SerenityOS.patch
@@ -0,0 +1,25 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: demostanis <demostanis@protonmail.com>
+Date: Sat, 10 Sep 2022 20:19:23 +0200
+Subject: [PATCH] Use /proc/self/exe on SerenityOS
+
+---
+ src/file.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/file.cc b/src/file.cc
+index d38c956..9c74364 100644
+--- a/src/file.cc
++++ b/src/file.cc
+@@ -603,7 +603,7 @@ FsStatus get_fs_status(StringView filename)
+ String get_kak_binary_path()
+ {
+ char buffer[2048];
+-#if defined(__linux__) or defined(__CYGWIN__) or defined(__gnu_hurd__)
++#if defined(__linux__) or defined(__CYGWIN__) or defined(__gnu_hurd__) or defined(__serenity__)
+ ssize_t res = readlink("/proc/self/exe", buffer, 2048);
+ kak_assert(res != -1);
+ buffer[res] = '\0';
+--
+2.37.3
+