From: =?UTF-8?q?Ola=20S=C3=B6der?= Date: Mon, 6 Mar 2023 20:36:55 +0000 (+0000) Subject: patch 9.0.1388: Amiga: not all builds use gethostname() X-Git-Tag: v9.0.1388 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f06c4a7a1d6a8a02449e6ed3aa3a2c19d7fde2ea;p=vim 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) --- diff --git a/src/os_amiga.c b/src/os_amiga.c index 0e0fa7783..2d243b72e 100644 --- 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); diff --git a/src/version.c b/src/version.c index e590919f8..0a05883d0 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1388, /**/ 1387, /**/