0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34:07 -04:00

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)
This commit is contained in:
=?UTF-8?q?Ola=20S=C3=B6der?=
2023-03-06 20:36:55 +00:00
committed by Bram Moolenaar
parent cf3c1ca276
commit f06c4a7a1d
2 changed files with 3 additions and 1 deletions

View File

@@ -691,7 +691,7 @@ mch_get_user_name(char_u *s, int len)
void void
mch_get_host_name(char_u *s, int len) mch_get_host_name(char_u *s, int len)
{ {
#if defined(__amigaos4__) && defined(__CLIB2__) #if !defined(__AROS__)
gethostname(s, len); gethostname(s, len);
#else #else
vim_strncpy(s, "Amiga", len - 1); vim_strncpy(s, "Amiga", len - 1);

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1388,
/**/ /**/
1387, 1387,
/**/ /**/