changeset 25014:a47dea17acba v8.2.3044

patch 8.2.3044: Amiga MorphOS and AROS: process ID is not valid Commit: https://github.com/vim/vim/commit/3a62b14077c51c739cdc755356882b40c299f1c0 Author: ola.soder@axis.com <ola.soder@axis.com> Date: Thu Jun 24 18:50:30 2021 +0200 patch 8.2.3044: Amiga MorphOS and AROS: process ID is not valid Problem: Amiga MorphOS and AROS: process ID is not valid. Solution: Use FindTask to return something which is unique to all processes. (Ola S?der, closes #8444)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Jun 2021 19:00:05 +0200
parents 5dc82450efc5
children 5dc64bd86541
files src/os_amiga.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_amiga.c
+++ b/src/os_amiga.c
@@ -446,7 +446,7 @@ mch_check_win(int argc, char **argv)
      * we use a pointer to the current task instead. This should be a
      * shared structure and thus globally unique.
      */
-#ifdef __amigaos4__
+#if !defined(__amigaos4__) && !defined(__AROS__) && !defined(__MORPHOS__)
     sprintf((char *)buf1, "t:nc%p", FindTask(0));
 #else
     sprintf((char *)buf1, "t:nc%ld", (long)buf1);
@@ -706,7 +706,7 @@ mch_get_host_name(char_u *s, int len)
     long
 mch_get_pid(void)
 {
-#ifdef __amigaos4__
+#if defined(__amigaos4__) || defined(__AROS__) || defined(__MORPHOS__)
     // This is as close to a pid as we can come. We could use CLI numbers also,
     // but then we would have two different types of process identifiers.
     return((long)FindTask(0));
--- a/src/version.c
+++ b/src/version.c
@@ -756,6 +756,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3044,
+/**/
     3043,
 /**/
     3042,