]> granicus.if.org Git - vim/commitdiff
patch 9.0.1388: Amiga: not all builds use gethostname() v9.0.1388
author=?UTF-8?q?Ola=20S=C3=B6der?= <rolfkopman@gmail.com>
Mon, 6 Mar 2023 20:36:55 +0000 (20:36 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 Mar 2023 20:36:55 +0000 (20:36 +0000)
Problem:    Amiga: not all builds use gethostname().
Solution:   Use gethostname() for all builds except AROS. (Ola Söder,
            closes #12107)

src/os_amiga.c
src/version.c

index 0e0fa77834ec689482e210c8089c2f8dbde66f13..2d243b72e2d763e90ada2b84673bbd4b7734fada 100644 (file)
@@ -691,7 +691,7 @@ mch_get_user_name(char_u *s, int len)
     void
 mch_get_host_name(char_u *s, int len)
 {
-#if defined(__amigaos4__) && defined(__CLIB2__)
+#if !defined(__AROS__)
     gethostname(s, len);
 #else
     vim_strncpy(s, "Amiga", len - 1);
index e590919f8978180e146ef9e6f22541235634c464..0a05883d0cff8a1b6ce679eb0a07c4373a10bb10 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1388,
 /**/
     1387,
 /**/