changeset 32114:7ef5674e346f v9.0.1388

patch 9.0.1388: Amiga: not all builds use gethostname() Commit: https://github.com/vim/vim/commit/f06c4a7a1d6a8a02449e6ed3aa3a2c19d7fde2ea Author: =?UTF-8?q?Ola=20S=C3=B6der?= <rolfkopman@gmail.com> Date: Mon Mar 6 20:36:55 2023 +0000 patch 9.0.1388: Amiga: not all builds use gethostname() Problem: Amiga: not all builds use gethostname(). Solution: Use gethostname() for all builds except AROS. (Ola S?der, closes #12107)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Mar 2023 21:45:02 +0100
parents 6a007f44dd2e
children c45ce1e9a0db
files src/os_amiga.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_amiga.c
+++ b/src/os_amiga.c
@@ -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);
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1388,
+/**/
     1387,
 /**/
     1386,