Skip to content

Commit f06c4a7

Browse files
soderobrammool
authored andcommitted
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)
1 parent cf3c1ca commit f06c4a7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/os_amiga.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ mch_get_user_name(char_u *s, int len)
691691
void
692692
mch_get_host_name(char_u *s, int len)
693693
{
694-
#if defined(__amigaos4__) && defined(__CLIB2__)
694+
#if !defined(__AROS__)
695695
gethostname(s, len);
696696
#else
697697
vim_strncpy(s, "Amiga", len - 1);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1388,
698700
/**/
699701
1387,
700702
/**/

0 commit comments

Comments
 (0)